rope
rope copied to clipboard
Support TypeAlias ast nodes
Describe the bug
I'm getting the error:
...lib/python3.12/site-packages/rope/refactor/patchedast.py:82: RuntimeWarning: Unknown node type <TypeAlias>; please report!
- Describe the refactoring you want to do
I'm trying to rename a file, containing PEP 695 type alias.
- Expected code after refactoring:
The same code, but in another file, and with all imports fixed.
- Describe the error or unexpected result that you are getting
...lib/python3.12/site-packages/rope/refactor/patchedast.py:82: RuntimeWarning: Unknown node type <TypeAlias>; please report!
then a long stracktrace and:
rope.refactor.patchedast.MismatchedTokenError: Token <def> at (291, 81) cannot be matched