summaryrefslogtreecommitdiff
path: root/testsuite/python310.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-05-02 12:53:02 -0700
committerGitHub <noreply@github.com>2021-05-02 12:53:02 -0700
commit61138ca629242a998b495ce05b5cd25df2429900 (patch)
tree8413811bb82ca17496f4c842485278807f979edf /testsuite/python310.py
parentc4460cb9dffbd9b7ee000dc31388d5f45fe484a0 (diff)
parent91fc81764a347797b79dfe6fa901a77b63d87473 (diff)
downloadpep8-61138ca629242a998b495ce05b5cd25df2429900.tar.gz
Merge pull request #989 from cdce8p/whitespace-match-false-positive
Fix false-positive E211 with match and case
Diffstat (limited to 'testsuite/python310.py')
-rw-r--r--testsuite/python310.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/python310.py b/testsuite/python310.py
new file mode 100644
index 0000000..83b7bb4
--- /dev/null
+++ b/testsuite/python310.py
@@ -0,0 +1,9 @@
+#: Okay
+var, var2 = 1, 2
+match (var, var2):
+ case [2, 3]:
+ pass
+ case (1, 2):
+ pass
+ case _:
+ print("Default")