MCPcopy
hub / github.com/encode/starlette / numbers

Function numbers

tests/test_responses.py:105–110  ·  view source on GitHub ↗
(minimum: int, maximum: int)

Source from the content-addressed store, hash-verified

103
104 async def app(scope: Scope, receive: Receive, send: Send) -> None:
105 async def numbers(minimum: int, maximum: int) -> AsyncIterator[str]:
106 for i in range(minimum, maximum + 1):
107 yield str(i)
108 if i != maximum:
109 yield ", "
110 await anyio.sleep(0)
111
112 async def numbers_for_cleanup(start: int = 1, stop: int = 5) -> None:
113 nonlocal filled_by_bg_task

Callers 2

numbers_for_cleanupFunction · 0.85
appFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected