Make Pyo3MethodsInventoryFor<class>::new public

This commit is contained in:
mejrs 2022-02-14 23:27:54 +01:00
parent 03e650c02f
commit a8ec8b4176
1 changed files with 1 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@ fn define_inventory_class(inventory_class_name: &syn::Ident) -> TokenStream {
items: _pyo3::impl_::pyclass::PyClassItems,
}
impl #inventory_class_name {
const fn new(items: _pyo3::impl_::pyclass::PyClassItems) -> Self {
pub const fn new(items: _pyo3::impl_::pyclass::PyClassItems) -> Self {
Self { items }
}
}