X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/db30456916ca733d011a2774e66beb3dd7064e14..3dea6e363562050ae032c80a648bd88fc49381bc:/tests/data/pep_572_remove_parens.py?ds=inline diff --git a/tests/data/pep_572_remove_parens.py b/tests/data/pep_572_remove_parens.py index 9a80485..9718d95 100644 --- a/tests/data/pep_572_remove_parens.py +++ b/tests/data/pep_572_remove_parens.py @@ -33,6 +33,9 @@ def foo2(answer: (p := 42) = 5): lambda: (x := 1) +a[(x := 12)] +a[:(x := 13)] + # we don't touch expressions in f-strings but if we do one day, don't break 'em f'{(x:=10)}' @@ -43,6 +46,10 @@ def a(): yield (a := 2) raise (c := 3) +def this_is_so_dumb() -> (please := no): + pass + + # output if foo := 0: pass @@ -79,6 +86,9 @@ def foo2(answer: (p := 42) = 5): lambda: (x := 1) +a[(x := 12)] +a[:(x := 13)] + # we don't touch expressions in f-strings but if we do one day, don't break 'em f"{(x:=10)}" @@ -88,3 +98,8 @@ def a(): await (b := 1) yield (a := 2) raise (c := 3) + + +def this_is_so_dumb() -> (please := no): + pass +