Skip to content

Commit

Permalink
Add additional test on 3.9 and fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed Aug 26, 2021
1 parent 28b3530 commit 7336634
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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]
5 changes: 4 additions & 1 deletion 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)]

0 comments on commit 7336634

Please sign in to comment.