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
If the line after a with statement becomes reachable because a stub has __exit__ annotated to return bool, even though the actual runtime return value is always False, this can result in confusing missing return statement errors.
One way to deal with this would be to detect this and add a note saying that the __exit__ return type may be causing a spurious error.
If the line after a with statement becomes reachable because a stub has
__exit__
annotated to returnbool
, even though the actual runtime return value is alwaysFalse
, this can result in confusing missing return statement errors.One way to deal with this would be to detect this and add a note saying that the
__exit__
return type may be causing a spurious error.Follow-up to #7655. See #7577 for context.
The text was updated successfully, but these errors were encountered: