Skip to content

Commit 403ff53

Browse files
committed
feat(WPS366): match statement sequence or mapping can be simplified to if, refs #3527
1 parent 0bd6326 commit 403ff53

File tree

5 files changed

+3564
-11
lines changed

5 files changed

+3564
-11
lines changed

tests/fixtures/noqa/noqa.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,13 +622,13 @@ def many_raises_function(parameter): # noqa: WPS238
622622
case _:
623623
...
624624

625-
match subject: # noqa: WPS366
626-
case [1, 2]: # noqa: WPS366
625+
match data: # noqa: WPS366
626+
case [1, 2]:
627627
...
628628
case _:
629629
...
630630

631-
match subject: # noqa: WPS366
631+
match data: # noqa: WPS366
632632
case {'x': 1, 'y': 2}:
633633
...
634634
case _:

0 commit comments

Comments
 (0)