-
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
enumerate(self) type unknown #423
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Comments
I have a workaround, this works even though it knew that self was a BitBlob before def bad_types(self: BitBlob) -> None:
for i, value in enumerate(self):
pass |
I can reproduce this. |
Thanks for reporting the problem. This will be fixed in the next release. |
This issue has been fixed in version 2020.9.7, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#202097-30-september-2020 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
for i, value in enumerate(self): # (variable) value: bool
...
Actual behaviour
(variable) value: Unknown
Type of "value" is unknownPylance (reportUnknownVariableType)
But the following works just fine
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: