Skip to content

Commit

Permalink
wrong tuple order
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfeuffer authored Nov 7, 2024
1 parent 86c3ad8 commit 0721ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autowrap/CodeGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 0721ad6

Please sign in to comment.