diff options
Diffstat (limited to 'pyflakes/test/test_type_annotations.py')
-rw-r--r-- | pyflakes/test/test_type_annotations.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pyflakes/test/test_type_annotations.py b/pyflakes/test/test_type_annotations.py index 3775cd3..d881205 100644 --- a/pyflakes/test/test_type_annotations.py +++ b/pyflakes/test/test_type_annotations.py @@ -298,6 +298,11 @@ class TestTypeAnnotations(TestCase): a: 'a: "A"' ''', m.ForwardAnnotationSyntaxError) + def test_variable_annotation_references_self_name_undefined(self): + self.flakes(""" + x: int = x + """, m.UndefinedName) + def test_TypeAlias_annotations(self): self.flakes(""" from typing_extensions import TypeAlias |