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
PEP 695 (introduced in Python 3.12) introduces a new type statement to define type aliases. If you use the language server "rename" feature to attempt to rename the type alias, it fails with an error message:
To repro:
Install the latest Python 3.12 rc1. Alternatively, set the pylance/pyright "pythonVersion" to "3.12".
Create a new file with the following contents.
typeTA1=intx: TA1=1
Position the mouse cursor over either instance of TA1 and run the "Rename Symbol" command.
The text was updated successfully, but these errors were encountered:
PEP 695 (introduced in Python 3.12) introduces a new
type
statement to define type aliases. If you use the language server "rename" feature to attempt to rename the type alias, it fails with an error message:To repro:
TA1
and run the "Rename Symbol" command.The text was updated successfully, but these errors were encountered: