Skip to content

Commit 7433225

Browse files
committed
Reverts generics removal in pyobject_subclassable_native_type
1 parent fb793af commit 7433225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ macro_rules! pyobject_native_type_core {
184184
#[doc(hidden)]
185185
#[macro_export]
186186
macro_rules! pyobject_subclassable_native_type {
187-
($name:ty, $layout:path, $python_name:expr) => {
187+
($name:ty, $layout:path, $python_name:expr $(;$generics:ident)*) => {
188188
#[cfg(not(Py_LIMITED_API))]
189-
impl $crate::impl_::pyclass::PyClassBaseType for $name {
189+
impl<$($generics,)*> $crate::impl_::pyclass::PyClassBaseType for $name {
190190
type LayoutAsBase = $crate::impl_::pycell::PyClassObjectBase<$layout>;
191191
type BaseNativeType = $name;
192192
type Initializer = $crate::impl_::pyclass_init::PyNativeTypeInitializer<Self>;

0 commit comments

Comments
 (0)