INNER CODE UNIT · Python

async_cm

hynek/svcs · typing_tests/base.py:67

async def async_cm() -> AsyncGenerator:
    yield 42


def factory_with_cleanup() -> Generator[int, None, None]:
    yield 1


@contextlib.contextmanager
def factory_with_cleanup_ctx() -> Generator[int, None, None]:
    yield 1


def factory_that_takes_container_by_annotation(foo: svcs.Container) -> int:
    return 1


async def async_ping() -> None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…