Make Pyo3MethodsInventoryFor<class>::new public
This commit is contained in:
parent
03e650c02f
commit
a8ec8b4176
|
@ -1010,7 +1010,7 @@ fn define_inventory_class(inventory_class_name: &syn::Ident) -> TokenStream {
|
||||||
items: _pyo3::impl_::pyclass::PyClassItems,
|
items: _pyo3::impl_::pyclass::PyClassItems,
|
||||||
}
|
}
|
||||||
impl #inventory_class_name {
|
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 }
|
Self { items }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue