You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/workspace/test.py", line 11, in <module>
print(list(finder.get_matches(pattern)))
File "/usr/local/lib/python3.10/dist-packages/rope/refactor/similarfinder.py", line 109, in get_matches
match_start, match_end = match.get_region()
File "/usr/local/lib/python3.10/dist-packages/rope/refactor/similarfinder.py", line 259, in get_region
return self.ast.region
AttributeError: 'Name' object has no attribute 'region'
This is because line 632 in rope.refactor.patchedast doesn't consider the annotation of arg.
The following code will trigger an AttributeError:
This is because line 632 in rope.refactor.patchedast doesn't consider the annotation of arg.
Change it to the following code can fix the bug
The text was updated successfully, but these errors were encountered: