diff --git a/autowrap/CodeGenerator.py b/autowrap/CodeGenerator.py index 1afe21b..a176f72 100644 --- a/autowrap/CodeGenerator.py +++ b/autowrap/CodeGenerator.py @@ -1738,7 +1738,7 @@ def create_special_setitem_method(self, mdcl): raise Exception("setitem method currently only supports a single argument.") # TODO make sure it is a basic type (class or builtin, no list/dict) - _, ctype = mdcl.arguments[0] + _, ctype_in = mdcl.arguments[0] in_converter = self.cr.get(ctype_in) in_t_py = in_converter.matching_python_type_full(ctype_in)