X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/be49ac72a04dd70d3f496d3d062405ad4166ea0b..3501cefb09eb8448bd82287840c9093f10c25299:/tests/data/python38.py?ds=sidebyside diff --git a/tests/data/python38.py b/tests/data/python38.py index 1a7f761..63b0588 100644 --- a/tests/data/python38.py +++ b/tests/data/python38.py @@ -11,6 +11,14 @@ def starred_yield(): yield "value1", *my_list +# all right hand side expressions allowed in regular assignments are now also allowed in +# annotated assignments +a : Tuple[ str, int] = "1", 2 +a: Tuple[int , ... ] = b, *c, d +def t(): + a : str = yield "a" + + # output @@ -25,3 +33,13 @@ def starred_return(): def starred_yield(): my_list = ["value2", "value3"] yield "value1", *my_list + + +# all right hand side expressions allowed in regular assignments are now also allowed in +# annotated assignments +a: Tuple[str, int] = "1", 2 +a: Tuple[int, ...] = b, *c, d + + +def t(): + a: str = yield "a"