Skip to content

Commit 51ffb07

Browse files
committed
propagate methods_type correctly into PyClassImplsBuilders of the variants
1 parent 44f201d commit 51ffb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyo3-macros-backend/src/pyclass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ fn impl_complex_enum(
877877
let pyclass_impl = PyClassImplsBuilder::new(
878878
&variant_cls,
879879
&variant_args,
880-
PyClassMethodsType::Specialization,
880+
methods_type,
881881
field_getters,
882882
vec![variant_new],
883883
)

0 commit comments

Comments
 (0)