Skip to content

Commit

Permalink
Fix missing PyGetSetDef_INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Sep 6, 2020
1 parent cd09623 commit 8624306
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ fn py_class_properties<T: PyClass>() -> Vec<ffi::PyGetSetDef> {
if !T::Dict::IS_DUMMY {
props.push(ffi::PyGetSetDef_DICT);
}
if !props.is_empty() {
props.push(ffi::PyGetSetDef_INIT);
}
props
}

Expand Down

0 comments on commit 8624306

Please sign in to comment.