X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/d90297c77bab6e22831b05ffc099bfc709cc7785..d1aee5f7fa136b1f0a7d8dfc318af81009074070:/.vim/bundle/black/tests/data/cases/preview_context_managers_autodetect_310.py diff --git a/.vim/bundle/black/tests/data/cases/preview_context_managers_autodetect_310.py b/.vim/bundle/black/tests/data/cases/preview_context_managers_autodetect_310.py new file mode 100644 index 0000000..a9e3107 --- /dev/null +++ b/.vim/bundle/black/tests/data/cases/preview_context_managers_autodetect_310.py @@ -0,0 +1,36 @@ +# flags: --preview --minimum-version=3.10 +# This file uses pattern matching introduced in Python 3.10. + + +match http_code: + case 404: + print("Not found") + + +with \ + make_context_manager1() as cm1, \ + make_context_manager2() as cm2, \ + make_context_manager3() as cm3, \ + make_context_manager4() as cm4 \ +: + pass + + +# output + + +# This file uses pattern matching introduced in Python 3.10. + + +match http_code: + case 404: + print("Not found") + + +with ( + make_context_manager1() as cm1, + make_context_manager2() as cm2, + make_context_manager3() as cm3, + make_context_manager4() as cm4, +): + pass