diff options
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index dc25c8bd9..42c13ce82 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -905,7 +905,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): if constructor: arg_decls = [] arg_names = [] - for arg in constructor.type.args[:len(constructor.type.args)-constructor.type.optional_arg_count]: + for arg in constructor.type.original_args[:len(constructor.type.args)-constructor.type.optional_arg_count]: arg_decls.append(arg.declaration_code()) arg_names.append(arg.cname) if constructor.type.optional_arg_count: |