black/tests/data/cases/preview_pep_572.py

8 lines
79 B
Python

# flags: --preview
x[(a:=0):]
x[:(a:=0)]
# output
x[(a := 0) :]
x[: (a := 0)]