
* Update tokenize.py * Update driver.py * Update test_black.py * Update test_black.py * Update python37.py * Update tokenize.py * Update CHANGES.md * Update CHANGES.md * Update faq.md * Update driver.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
62 lines
1.1 KiB
Python
62 lines
1.1 KiB
Python
def f():
|
|
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)
|
|
)
|
|
|
|
|
|
async def func():
|
|
await ...
|
|
if test:
|
|
out_batched = [
|
|
i
|
|
async for i in aitertools._async_map(
|
|
self.async_inc, arange(8), batch_size=3
|
|
)
|
|
]
|
|
|
|
|
|
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))
|
|
|
|
|
|
# output
|
|
|
|
|
|
def f():
|
|
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)
|
|
)
|
|
|
|
|
|
async def func():
|
|
await ...
|
|
if test:
|
|
out_batched = [
|
|
i
|
|
async for i in aitertools._async_map(
|
|
self.async_inc, arange(8), batch_size=3
|
|
)
|
|
]
|
|
|
|
|
|
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))
|