Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 27, 2023
1 parent 90b2c55 commit 7c4ed35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swig/python/codegen/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ def dispatchType(self, tree):
if not isinstance(tree.value, ast.Name) :
self.RaiseError(tree, "Not a supported type")
if not (tree.value.id == "numpy" or tree.value.id == "np"):
self.RaiseError(tree, "%s is not a supported type"%(tree.value.id))
self.RaiseError(tree, "%s.%s is not a supported type"%(tree.value.id, tree.attr))
if tree.attr not in self.numpytypes:
self.RaiseError(tree, "%s is not a supported numpy type"%(tree.attr))
self.RaiseError(tree, "%s.%s is not a supported numpy type"%(tree.value.id, tree.attr))
self.write(self.numpytypes[tree.attr])
else:
self.RaiseError(tree, "Not a supported type")
Expand Down

0 comments on commit 7c4ed35

Please sign in to comment.