summaryrefslogtreecommitdiff
path: root/testsuite/python38.py
diff options
context:
space:
mode:
authorIan Stapleton Cordasco <graffatcolmingov@gmail.com>2021-09-30 06:35:53 -0500
committerIan Stapleton Cordasco <graffatcolmingov@gmail.com>2021-10-01 05:55:18 -0500
commitd19b47a307fd45f2e2d2994f105a3c69d66caf82 (patch)
tree0115f6beae10b55a6988e8698e6f05b0aa7fc0cc /testsuite/python38.py
parentbf0c5bc6e61cf728047b2fe43bd8e993581ff16c (diff)
downloadpep8-d19b47a307fd45f2e2d2994f105a3c69d66caf82.tar.gz
Allow __all__ to be typedissue/1018
Closes gh-1018
Diffstat (limited to 'testsuite/python38.py')
-rw-r--r--testsuite/python38.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/python38.py b/testsuite/python38.py
index f927673..1374192 100644
--- a/testsuite/python38.py
+++ b/testsuite/python38.py
@@ -28,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