MCPcopy Create free account
hub / github.com/psf/black / coroutine

Function coroutine

tests/data/simple_cases/function.py:19–23  ·  view source on GitHub ↗

Single-line docstring. Multiline is harder to reformat.

(arg, exec=False)

Source from the content-addressed store, hash-verified

17 exec("new-style exec", {}, {})
18 return None
19async def coroutine(arg, exec=False):
20 "Single-line docstring. Multiline is harder to reformat."
21 async with some_connection() as conn:
22 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
23 await asyncio.sleep(1)
24@asyncio.coroutine
25@some_decorator(
26with_args=True,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected