We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb793af commit 7433225Copy full SHA for 7433225
src/types/mod.rs
@@ -184,9 +184,9 @@ macro_rules! pyobject_native_type_core {
184
#[doc(hidden)]
185
#[macro_export]
186
macro_rules! pyobject_subclassable_native_type {
187
- ($name:ty, $layout:path, $python_name:expr) => {
+ ($name:ty, $layout:path, $python_name:expr $(;$generics:ident)*) => {
188
#[cfg(not(Py_LIMITED_API))]
189
- impl $crate::impl_::pyclass::PyClassBaseType for $name {
+ impl<$($generics,)*> $crate::impl_::pyclass::PyClassBaseType for $name {
190
type LayoutAsBase = $crate::impl_::pycell::PyClassObjectBase<$layout>;
191
type BaseNativeType = $name;
192
type Initializer = $crate::impl_::pyclass_init::PyNativeTypeInitializer<Self>;
0 commit comments