Skip to content

Support TypeAlias ast nodes #821

@jesnie

Description

@jesnie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected or incorrect user-visible behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions