Skip to content

Commit

Permalink
check mutability attr exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Aug 14, 2023
1 parent 199eece commit 65b5384
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper/semantics/analysis/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ def _check_mutability(call_type):
for arg, arg_type in zip(node.args, call_type.arg_types):
self.visit(arg, arg_type)
else:
_check_mutability(call_type)
if hasattr(call_type, "mutability"):
_check_mutability(call_type)

# builtin functions
arg_types = call_type.infer_arg_types(node)
Expand Down

0 comments on commit 65b5384

Please sign in to comment.