diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-07-09 17:19:44 +0200 |
---|---|---|
committer | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-07-09 17:19:44 +0200 |
commit | 696170927b2723ce390d011d5d1af34e914e61b8 (patch) | |
tree | 10a40b8fe49bd25585835508f5defba4555b4d15 /testsuite/python310.py | |
parent | aa3417b6a51f5912e32d9c8c879e1b9dd660d5f8 (diff) | |
download | pep8-696170927b2723ce390d011d5d1af34e914e61b8.tar.gz |
Fix false-positive with star pattern
Diffstat (limited to 'testsuite/python310.py')
-rw-r--r-- | testsuite/python310.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/python310.py b/testsuite/python310.py index e78d372..8cd98f2 100644 --- a/testsuite/python310.py +++ b/testsuite/python310.py @@ -7,6 +7,21 @@ match (var, var2): pass case _: print("Default") +#: Okay +var = 0, 1, 2 +match var: + case *_, 1, 2: + pass + case 0, *_, 2: + pass + case 0, 1, *_: + pass + case (*_, 1, 2): + pass + case (0, *_, 2): + pass + case (0, 1, *_): + pass #: E271:2:6 E271:3:9 E271:5:9 E271:7:9 var = 1 match var: |