-
Notifications
You must be signed in to change notification settings - Fork 95
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
Add support for PEP 585 #229
Comments
Unfortunately there is no scope for inline type hints at all - as far as I could find. The yellow highlighting in your screenshot is because There are scopes for type hint comments though:
I would love to see one or multiple scope(s) for inline type hints (variables, parameters, returns) like PyCharm has. EDIT: with the new |
wasn't too bad, one line change in #271 to support this |
Since PEP 585 implemented in Python 3.9, one can use the generics syntax even with built-in collections, not just those included in
typing
(e.g.list
vs.typing.List
).As such, in the screenshot below, the type hint for argument
c
isn't highlighted properly. Inlist[int]
, bothlist
andint
should be highlighted, whereas onlyint
is highlighted currently. The type hint for argumentb
is highlighted correctly (and same fora
).The text was updated successfully, but these errors were encountered: