-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Regression in 0.660 regarding StopIteration #6209
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
Looks like this was introduced in python/typeshed#2533. I will submit a fix to typeshed now. |
JelleZijlstra
added a commit
to python/typeshed
that referenced
this issue
Jan 17, 2019
Thanks! |
JelleZijlstra
added a commit
to python/typeshed
that referenced
this issue
Jan 17, 2019
Fixed in typeshed now; the fix should get published with the next mypy release. My sense is that this bug isn't bad enough to warrant an emergency release, but cc @msullivan as the release manager. |
yedpodtrzitko
pushed a commit
to yedpodtrzitko/typeshed
that referenced
this issue
Jan 23, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not really sure if this is a regression or if this is mypy picking up something new, but if so I don't understand why.
The documentation for StopIteration says that "The exception object has a single attribute
value
, which is given as an argument when constructing the exception, and defaults to None." I don't get an error that I'm using the optional as a non-optional in my original code with 0.650, so probably something is wrong there anyway.commands to reproduce:
However, running
python test.py
shows that StopIteration definitely has a value attribute:The text was updated successfully, but these errors were encountered: