-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 generic slice
type arguments in a slice expression
#9533
Comments
…ce expressions. This addresses #9533.
@Dr-Irv, this will be included in pyright 1.1.390, which should be released tomorrow. |
Thanks. For our CI purposes, we may have to pin down to 1.1.389, unless you have ideas on how we can support mypy 1.13.0 and pyright 1.1.390 at the same time when doing |
oh nevermind, judging by b0cd5f1 this also required a change in pyright itself |
This is addressed in pyright 1.1.390. |
The typeshed definition for
slice
was recently updated to support generics. Pyright doesn't currently supply type arguments for the start, end, and step types when evaluating the type of a literal slice expression.See this mypy issue for details.
The text was updated successfully, but these errors were encountered: