summaryrefslogtreecommitdiff
path: root/tests/functional/u/undefined_variable.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/u/undefined_variable.py')
-rw-r--r--tests/functional/u/undefined_variable.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/u/undefined_variable.py b/tests/functional/u/undefined_variable.py
index 0967f7a30..71df92960 100644
--- a/tests/functional/u/undefined_variable.py
+++ b/tests/functional/u/undefined_variable.py
@@ -256,3 +256,11 @@ if TYPE_CHECKING:
def func_should_fail(_dt: datetime): # [used-before-assignment]
pass
+
+
+# The following should not emit an error.
+# pylint: disable=invalid-name
+if TYPE_CHECKING:
+ from typing_extensions import Literal
+
+ AllowedValues = Literal['hello', 'world']