Skip to content

Commit 3d9b64a

Browse files
committed
remove unnecessary and incorrect node 'fixup'.
1 parent 5a36751 commit 3d9b64a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/annotationlib.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,5 @@ def __init__(self, extra_names):
11981198

11991199
def visit_Name(self, node: ast.Name):
12001200
if (new_name := self.extra_names.get(node.id, _sentinel)) is not _sentinel:
1201-
new_node = ast.Name(id=type_repr(new_name))
1202-
ast.copy_location(node, new_node)
1203-
node = new_node
1201+
node = ast.Name(id=type_repr(new_name))
12041202
return node

0 commit comments

Comments
 (0)