X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f8617f975d56e81cfb4070ce65584f7b29a77e7a..ae5588cf073be10b51dc48ad2fc513e11c4f3e03:/tests/data/python37.py?ds=inline diff --git a/tests/data/python37.py b/tests/data/python37.py index 4401b7b..dab8b40 100644 --- a/tests/data/python37.py +++ b/tests/data/python37.py @@ -1,10 +1,16 @@ #!/usr/bin/env python3.7 + def f(): - return (i*2 async for i in arange(42)) + return (i * 2 async for i in arange(42)) + def g(): - return (something_long * something_long async for something_long in async_generator(with_an_argument)) + return ( + something_long * something_long + async for something_long in async_generator(with_an_argument) + ) + async def func(): if test: @@ -15,9 +21,11 @@ async def func(): ) ] + def awaited_generator_value(n): return (await awaitable for awaitable in awaitable_list) + def make_arange(n): return (i * 2 for i in range(n) if await wrap(i))