Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Feb 9, 2024
1 parent cfd08b8 commit d4263cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ def _analyse_list_iter(self, iter_node, target_type):
except (TypeMismatch, InvalidType):
raise InvalidType("Not an iterable type", iter_node)

# get the root varinfo from iter_val in case we need to peer
# through folded constants
info = get_expr_info(iter_val)
return info.get_root_varinfo()

Expand Down

0 comments on commit d4263cd

Please sign in to comment.