Make star-expression spacing consistent in match/case (#2667)

This commit is contained in:
Batuhan Taskaya 2021-12-03 17:49:33 +03:00 committed by GitHub
parent bd9d52b52d
commit 136930fccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@
- Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple
times, like `match re.match()` (#2661)
- 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)
- Add `flake8-simplify` and `flake8-comprehensions` plugins (#2653)
- Fix determination of f-string expression spans (#2654)

View File

@ -97,6 +97,8 @@
syms.listmaker,
syms.testlist_gexp,
syms.testlist_star_expr,
syms.subject_expr,
syms.pattern,
}
TEST_DESCENDANTS: Final = {
syms.test,

View File

@ -77,3 +77,8 @@ def func(match: case, case: match) -> case:
match match:
case case:
pass
match a, *b(), c:
case d, *f, g:
pass