MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / f

Function f

tests/test_web_app.py:409–415  ·  view source on GitHub ↗
(num: int)

Source from the content-addressed store, hash-verified

407 out = []
408
409 def f(num: int) -> Callable[[web.Application], AsyncIterator[None]]:
410 async def inner(app: web.Application) -> AsyncIterator[None]:
411 out.append("pre_" + str(num))
412 yield None
413 out.append("post_" + str(num))
414
415 return inner
416
417 app.cleanup_ctx.append(f(1))
418 app.cleanup_ctx.append(f(2))

Calls

no outgoing calls

Tested by

no test coverage detected