INNER CODE UNIT · Python
factory_with_cleanup
hynek/svcs · typing_tests/base.py:71
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:
pass
reg.register_value(int, 1)