summaryrefslogtreecommitdiff
path: root/testsuite/python38.py
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/python38.py')
-rw-r--r--testsuite/python38.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/python38.py b/testsuite/python38.py
index 57ee613..1374192 100644
--- a/testsuite/python38.py
+++ b/testsuite/python38.py
@@ -13,6 +13,9 @@ def f3(
b,
):
pass
+
+
+lambda a, /: None
#: Okay
if x := 1:
print(x)
@@ -25,3 +28,17 @@ if x:= 1:
#: E225:1:18
if False or (x :=1):
pass
+#: Okay
+import typing as t
+
+__all__: t.List[str] = []
+
+import logging
+
+logging.getLogger(__name__)
+#: E402
+import typing as t
+
+all_the_things: t.List[str] = []
+
+import logging