INNER CODE UNIT · Python
m
hynek/svcs · typing_tests/base.py:117
def m(self) -> None: ...
assert_type(con.get(P), P)
# Just make sure it passes even tho it's Any.
p: P = con.get_abstract(P)
con.close()
with contextlib.closing(svcs.Container(reg)) as con:
...
with svcs.Container(reg) as con:
assert_type(con.get(int), int)
async def ctx() -> None: