Skip to content

Commit

Permalink
Fix redefining name 'astroid' from outer scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Apr 19, 2021
1 parent 1e1ea99 commit b86bdf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittest_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,8 @@ def f(a):
# type: (A) -> A
pass
"""
astroid = builder.parse(data)
f = astroid.body[0]
parsed_data = builder.parse(data)
f = parsed_data.body[0]
assert f.type_comment_args[0].parent is f
assert f.type_comment_returns.parent is f

Expand Down

0 comments on commit b86bdf1

Please sign in to comment.