Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support python 3.12 type alias syntax #265

Open
DetachHead opened this issue Apr 26, 2024 · 1 comment
Open

support python 3.12 type alias syntax #265

DetachHead opened this issue Apr 26, 2024 · 1 comment

Comments

@DetachHead
Copy link

python 3.12 introduced new syntax for type aliases:

type Foo = int

this is currently highlighted incorrectly:

image

(the type keyword should be blue and the Foo name should be green)

related: #262

@DetachHead
Copy link
Author

as a workaround, i've fixed this with semantic highlighting in basedpyright:

image

though i'm not sure how to make it blue (or if it even should be blue). DetachHead/basedpyright#147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant