From 0721ad669c9ba62386fab1cf1228c917c507e117 Mon Sep 17 00:00:00 2001 From: Julianus Pfeuffer Date: Thu, 7 Nov 2024 16:06:16 +0100 Subject: [PATCH] wrong tuple order --- autowrap/CodeGenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autowrap/CodeGenerator.py b/autowrap/CodeGenerator.py index 300ebc8..1afe21b 100644 --- a/autowrap/CodeGenerator.py +++ b/autowrap/CodeGenerator.py @@ -1662,7 +1662,7 @@ def create_special_getitem_method(self, mdcl): raise Exception("getitem 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 = mdcl.arguments[0] ( (call_arg,), @@ -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_in, _ = mdcl.arguments[0] + _, ctype = mdcl.arguments[0] in_converter = self.cr.get(ctype_in) in_t_py = in_converter.matching_python_type_full(ctype_in)