INNER CODE UNIT · Python

Foo

hynek/svcs · typing_tests/base.py:165

class Foo:
    pass


foo = Foo()

reg.register_value(Foo, foo)


# Autowire
@svcs.autowire
def fn(a: str, /, b: int, *, c: bool) -> str:
    return "fn"


@svcs.aautowire
async def afn(a: str, /, b: int, *, c: bool) -> str:
    return "afn"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…