diff --git a/tests/data/pep_572_py310.py b/tests/data/pep_572_py310.py index 2a4818b7524..2aef589ce8d 100644 --- a/tests/data/pep_572_py310.py +++ b/tests/data/pep_572_py310.py @@ -1,4 +1,4 @@ -# Unparenthesized warluses are now allowed in indices since Python 3.10. +# Unparenthesized walruses are now allowed in indices since Python 3.10. x[a:=0] x[a:=0, b:=1] x[5, b:=0] diff --git a/tests/data/pep_572_py39.py b/tests/data/pep_572_py39.py index efb745d8fca..7bbd5091197 100644 --- a/tests/data/pep_572_py39.py +++ b/tests/data/pep_572_py39.py @@ -1,4 +1,7 @@ -# Unparenthesized warluses are now allowed in set lterals & set comprehensions +# Unparenthesized walruses are now allowed in set literals & set comprehensions # since Python 3.9 {x := 1, 2, 3} {x4 := x ** 5 for x in range(7)} +# We better not remove the parentheses here (since it's a 3.10 feature) +x[(a := 1)] +x[(a := 1), (b := 3)]