Make star-expression spacing consistent in match/case (#2667)
This commit is contained in:
parent
bd9d52b52d
commit
136930fccb
@ -14,6 +14,7 @@
|
|||||||
- Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple
|
- Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple
|
||||||
times, like `match re.match()` (#2661)
|
times, like `match re.match()` (#2661)
|
||||||
- Fix `case` statements with an inline body (#2665)
|
- Fix `case` statements with an inline body (#2665)
|
||||||
|
- Fix styling of starred expressions inside `match` subject (#2667)
|
||||||
- Fix assignment to environment variables in Jupyter Notebooks (#2642)
|
- Fix assignment to environment variables in Jupyter Notebooks (#2642)
|
||||||
- Add `flake8-simplify` and `flake8-comprehensions` plugins (#2653)
|
- Add `flake8-simplify` and `flake8-comprehensions` plugins (#2653)
|
||||||
- Fix determination of f-string expression spans (#2654)
|
- Fix determination of f-string expression spans (#2654)
|
||||||
|
@ -97,6 +97,8 @@
|
|||||||
syms.listmaker,
|
syms.listmaker,
|
||||||
syms.testlist_gexp,
|
syms.testlist_gexp,
|
||||||
syms.testlist_star_expr,
|
syms.testlist_star_expr,
|
||||||
|
syms.subject_expr,
|
||||||
|
syms.pattern,
|
||||||
}
|
}
|
||||||
TEST_DESCENDANTS: Final = {
|
TEST_DESCENDANTS: Final = {
|
||||||
syms.test,
|
syms.test,
|
||||||
|
@ -77,3 +77,8 @@ def func(match: case, case: match) -> case:
|
|||||||
match match:
|
match match:
|
||||||
case case:
|
case case:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
match a, *b(), c:
|
||||||
|
case d, *f, g:
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user