Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jan 8, 2024
1 parent ebf6df7 commit 3d38a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/ast/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ def visit_For(self, node):
# this step improves the diagnostics during semantics analysis as otherwise
# the code displayed in the error message would be incorrectly based on the
# full source code with the location of the type annotation as an expression
annotation_child_nodes = python_ast.iter_child_nodes(node.target.annotation)
for n in [*annotation_child_nodes, node.target.annotation]:
annotation_children = python_ast.iter_child_nodes(node.target.annotation)
for n in [*annotation_children, node.target.annotation]:
# override the source code to show the spliced type annotation
n.node_source_code = raw_annotation

Expand Down

0 comments on commit 3d38a02

Please sign in to comment.