summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-10-05 20:23:22 -0400
committerAnthony Sottile <asottile@umich.edu>2021-10-05 20:26:34 -0400
commite06e93e0dc6193e3b4045b470fd6ec5b022e50fc (patch)
treea076224601aa3e34af23502f8075eb0d3647946a
parentbb57b4cf2f61c643655eef4c77683fa144b2c3cd (diff)
downloadpep8-e06e93e0dc6193e3b4045b470fd6ec5b022e50fc.tar.gz
add example cases for incorrect E275 from reverted patch
-rw-r--r--testsuite/E27.py2
-rw-r--r--testsuite/python3.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/E27.py b/testsuite/E27.py
index 888b3a8..9bb53f8 100644
--- a/testsuite/E27.py
+++ b/testsuite/E27.py
@@ -42,3 +42,5 @@ try:
from importable.module import(e, f)
except ImportError:
pass
+#: Okay
+matched = {"true": True, "false": False}
diff --git a/testsuite/python3.py b/testsuite/python3.py
index 709695a..959956e 100644
--- a/testsuite/python3.py
+++ b/testsuite/python3.py
@@ -9,6 +9,8 @@ def foo(x: int) -> int:
# Annotated variables #575
CONST: int = 42
+match: int = 42
+case: int = 42
class Class: