Merge pull request #2169 from mejrs/multiplepymethods

Make Pyo3MethodsInventoryFor<class>::new public
This commit is contained in:
David Hewitt 2022-02-15 07:05:51 +00:00 committed by GitHub
commit 037a189564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }
}
}