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
{{ message }}
Repository navigation
[partially defined] Doesn't catch usage within an if statement #14124
I think this is part of general type of errors of the form that are currently not detected by mypy at all:
deffoo() ->None:
x=yy: int=1
@ilevkivskyi suggested recently that we could modify the partially-defined check to detect variables that are used before definition. I believe this should be possible.
Activity
ilinum commentedon Nov 21, 2022
I think this is part of general type of errors of the form that are currently not detected by mypy at all:
@ilevkivskyi suggested recently that we could modify the partially-defined check to detect variables that are used before definition. I believe this should be possible.
Let's use this issue to track this request.
Detect variables that are used before they're defined (#14163)