X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f8617f975d56e81cfb4070ce65584f7b29a77e7a..b517dfb396a82ef263f0d366c4dc107451cf0c3c:/tests/data/python37.py 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))