-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Slice index false positive #3442
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
Comments
Probably a typeshed issue. |
I don't think so, this is mypy's general slicing check, not a specific |
Furthermore, None as a slice index works in at least some cases:
So, at least for some cases, the code in |
OK, I thought mypy usually eventually defer to a dunder method, but if it doesn't in this case it's a mypy bug, perhaps related to strict optional. |
Reported by @chrish42.
The text was updated successfully, but these errors were encountered: