rope icon indicating copy to clipboard operation
rope copied to clipboard

Support TypeAlias ast nodes

Open jesnie opened this issue 3 months ago • 0 comments

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!

  1. Describe the refactoring you want to do

I'm trying to rename a file, containing PEP 695 type alias.

  1. Expected code after refactoring:

The same code, but in another file, and with all imports fixed.

  1. 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

jesnie avatar Sep 04 '25 12:09 jesnie