diff options
Diffstat (limited to 'tests/functional/u/undefined_variable.py')
| -rw-r--r-- | tests/functional/u/undefined_variable.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/u/undefined_variable.py b/tests/functional/u/undefined_variable.py index 82059997d..7fe205cc9 100644 --- a/tests/functional/u/undefined_variable.py +++ b/tests/functional/u/undefined_variable.py @@ -287,3 +287,10 @@ class DunderClass: def method(self): # This name is not defined in the AST but it's present at runtime return __class__ + + +def undefined_annotation(a:x): # [undefined-variable] + if x == 2: # [used-before-assignment] + for x in [1, 2]: + pass + return a |
