Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jun 19, 2022
1 parent 6a3e230 commit 4d9e8bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vyper/ir/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,11 @@ def _optimize(node: IRnode, parent: Optional[IRnode]) -> Tuple[bool, IRnode]:
starting_symbols = node.unique_symbols()

res = [_optimize(arg, node) for arg in node.args]
argz: list
if len(res) == 0:
args_changed, argz = False, []
else:
changed_flags, argz = zip(*res)
changed_flags, argz = zip(*res) # type: ignore
args_changed = any(changed_flags)
argz = list(argz)

Expand Down Expand Up @@ -473,7 +474,7 @@ def finalize(val, args):
if res is not None:
changed = True
should_check_symbols = True
value, argz, annotation = res
value, argz, annotation = res # type: ignore
return finalize(value, argz)

###
Expand Down

0 comments on commit 4d9e8bb

Please sign in to comment.