mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:39:12 +00:00
Format PatternMatchSingleton
(#6741)
This commit is contained in:
parent
fa32cd9b6f
commit
0f9ccfcad9
4 changed files with 63 additions and 8 deletions
|
@ -141,3 +141,20 @@ match pattern_comments:
|
|||
no_comments
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
match pattern_singleton:
|
||||
case (
|
||||
# leading 1
|
||||
# leading 2
|
||||
None # trailing
|
||||
# trailing own 1
|
||||
# trailing own 2
|
||||
):
|
||||
pass
|
||||
case (
|
||||
True # trailing
|
||||
):
|
||||
...
|
||||
case False:
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue