black/tests/data/cases/pep_572_do_not_remove_parens.py
Jelle Zijlstra a69bda3b9b
Use inline flags for test cases (#3931)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-10-09 18:43:47 -07:00

27 lines
514 B
Python

# flags: --fast
# Most of the following examples are really dumb, some of them aren't even accepted by Python,
# we're fixing them only so fuzzers (which follow the grammar which actually allows these
# examples matter of fact!) don't yell at us :p
del (a := [1])
try:
pass
except (a := 1) as (b := why_does_this_exist):
pass
for (z := 124) in (x := -124):
pass
with (y := [3, 2, 1]) as (funfunfun := indeed):
pass
@(please := stop)
def sigh():
pass
for (x := 3, y := 4) in y:
pass