From 3d38a028cc211ff06ff985a8a62cb100f94661b1 Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Mon, 8 Jan 2024 18:36:31 +0800 Subject: [PATCH] rename var --- vyper/ast/parse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vyper/ast/parse.py b/vyper/ast/parse.py index 1c667839db..fbf3a99b64 100644 --- a/vyper/ast/parse.py +++ b/vyper/ast/parse.py @@ -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