X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d90297c77bab6e22831b05ffc099bfc709cc7785:/.vim/bundle/black/tests/data/pep_572_remove_parens.py..d1aee5f7fa136b1f0a7d8dfc318af81009074070:/.vim/bundle/black/tests/data/cases/pep_572_remove_parens.py diff --git a/.vim/bundle/black/tests/data/pep_572_remove_parens.py b/.vim/bundle/black/tests/data/cases/pep_572_remove_parens.py similarity index 65% rename from .vim/bundle/black/tests/data/pep_572_remove_parens.py rename to .vim/bundle/black/tests/data/cases/pep_572_remove_parens.py index 9718d95..24f1ac2 100644 --- a/.vim/bundle/black/tests/data/pep_572_remove_parens.py +++ b/.vim/bundle/black/tests/data/cases/pep_572_remove_parens.py @@ -1,3 +1,4 @@ +# flags: --minimum-version=3.8 if (foo := 0): pass @@ -49,6 +50,25 @@ def a(): def this_is_so_dumb() -> (please := no): pass +async def await_the_walrus(): + with (x := y): + pass + + with (x := y) as z, (a := b) as c: + pass + + with (x := await y): + pass + + with (x := await a, y := await b): + pass + + with ((x := await a, y := await b)): + pass + + with (x := await a), (y := await b): + pass + # output if foo := 0: @@ -103,3 +123,22 @@ def a(): def this_is_so_dumb() -> (please := no): pass + +async def await_the_walrus(): + with (x := y): + pass + + with (x := y) as z, (a := b) as c: + pass + + with (x := await y): + pass + + with (x := await a, y := await b): + pass + + with (x := await a, y := await b): + pass + + with (x := await a), (y := await b): + pass