fully disambiguate types
This commit is contained in:
parent
f79420dabd
commit
21196e68e2
|
@ -345,13 +345,13 @@ fn impl_methods_inventory(cls: &syn::Ident) -> TokenStream {
|
||||||
quote! {
|
quote! {
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub struct #inventory_cls {
|
pub struct #inventory_cls {
|
||||||
methods: Vec<pyo3::class::PyMethodDefType>,
|
methods: ::std::vec::Vec<::pyo3::class::PyMethodDefType>,
|
||||||
}
|
}
|
||||||
impl ::pyo3::class::impl_::PyMethodsInventory for #inventory_cls {
|
impl ::pyo3::class::impl_::PyMethodsInventory for #inventory_cls {
|
||||||
fn new(methods: Vec<pyo3::class::PyMethodDefType>) -> Self {
|
fn new(methods: ::std::vec::Vec<::pyo3::class::PyMethodDefType>) -> Self {
|
||||||
Self { methods }
|
Self { methods }
|
||||||
}
|
}
|
||||||
fn get(&'static self) -> &'static [pyo3::class::PyMethodDefType] {
|
fn get(&'static self) -> &'static [::pyo3::class::PyMethodDefType] {
|
||||||
&self.methods
|
&self.methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue