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
Given a function such as the following, we are getting used-before-assignment and undefined-loop-variable for the annotation, while we should retrieve an undefined-variable message, since the variable is actually not defined there.
def test(a:x):
if x == 2:
for x in [1, 2]:
pass
The text was updated successfully, but these errors were encountered:
)
Fix scoping for function annotations, decorators and base classes
Closes#1082, #3434, #3461
Reduce number of branches in variables checker
Co-authored-by: Andrew Simmons <a.simmons@deakin.edu.au>
Given a function such as the following, we are getting used-before-assignment and undefined-loop-variable for the annotation, while we should retrieve an undefined-variable message, since the variable is actually not defined there.
The text was updated successfully, but these errors were encountered: