-
Notifications
You must be signed in to change notification settings - Fork 767
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
strict
mode in zip
causes extra type errors
#1909
Comments
The stub for zip is here: https://github.com/python/typeshed/blob/master/stdlib/builtins.pyi#L1327 It appears as though it hasn't yet been updated for PEP 618 yet. |
This was just fixed in typeshed. |
Thanks. This will be included in our next release. |
This issue has been fixed in version 2021.10.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#2021100-6-october-2021 |
That seems like a bug in the completion provider; zip is unique because it's signatures are provided by Would you mind filing a new issue? |
Sure, I've opened #1912. |
Environment data
Expected behaviour
No error warnings.
Actual behaviour
Below code doesn't cause any warnings:
However when using the new
strict
mode forzip
function added in Python 3.10 (PEP 618):I am getting 3 errors now:
zip
function itself, this appears with type checking at basicNo overloads for "__new__" match the provided arguments
Argument types: (list[str], list[int], Literal[True])
Type of "name"/"age" is unknown
Code Snippet / Additional information
Additionally,
strict
is not in the candidates list when typing inzip
.The text was updated successfully, but these errors were encountered: