X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d90297c77bab6e22831b05ffc099bfc709cc7785..d1aee5f7fa136b1f0a7d8dfc318af81009074070:/.vim/bundle/black/tests/data/cases/pep_572_py39.py diff --git a/.vim/bundle/black/tests/data/cases/pep_572_py39.py b/.vim/bundle/black/tests/data/cases/pep_572_py39.py new file mode 100644 index 0000000..d161462 --- /dev/null +++ b/.vim/bundle/black/tests/data/cases/pep_572_py39.py @@ -0,0 +1,8 @@ +# flags: --minimum-version=3.9 +# 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)]