Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jan 7, 2024
1 parent d068ebb commit 296ea7c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,6 @@ def visit_For(self, node):

if isinstance(node.iter, (vy_ast.Name, vy_ast.Attribute)):
iter_type = get_exact_type_from_node(node.iter)
# note CMC 2023-10-23: slightly redundant with how type_list is computed
validate_expected_type(node.target.target, iter_type.value_type)
self.expr_visitor.visit(node.iter, iter_type)
if isinstance(node.iter, vy_ast.List):
len_ = len(node.iter.elements)
Expand Down

0 comments on commit 296ea7c

Please sign in to comment.