Commit 30f92a3d authored by Xavier Thompson's avatar Xavier Thompson

Fix code generation of cypclass attributes in cclass

parent 44cb2dc6
......@@ -1895,8 +1895,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if scope.is_internal:
# internal classes (should) never need None inits, normal zeroing will do
py_attrs = []
# cyp_class attributes should not be treated as normal cpp_class attributes
cpp_class_attrs = [entry for entry in scope.var_entries
if entry.type.is_cpp_class]
if entry.type.is_cpp_class and not entry.type.is_cyp_class]
cinit_func_entry = scope.lookup_here("__cinit__")
if cinit_func_entry and not cinit_func_entry.is_special:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment