X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/be49ac72a04dd70d3f496d3d062405ad4166ea0b..2989dc1bf822b1b2a6bd250cea37bbf20c237764:/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"