You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, partially defined check (--enable-error-code partially-defined) does not support detecting partially defined variables try/except statement.
The most basic example is the following:
try:
x=foo()
except:
passy=x# mypy should generate an error here but does not.
The text was updated successfully, but these errors were encountered:
@ilinum What is the situation here? I see there were no activity on the PR last week. We will probably start 1.0 release process in a week or so. I would like to announce this feature in the release, and it would be great if try/except is properly supported.
This adds support for try/except/finally/else check.
The implementation ended up pretty complicated because it had to handle
jumps different for finally. It took me a few iterations to get to this
solution and that's the cleanest one I could come up with.
Closes#13928.
Currently, partially defined check (
--enable-error-code partially-defined
) does not support detecting partially defined variables try/except statement.The most basic example is the following:
The text was updated successfully, but these errors were encountered: