INNER CODE UNIT · Python

func

hynek/svcs · typing_tests/base.py:30

async def func() -> None:
    await reg.aclose()
    await con.aclose()

    async with svcs.Registry() as reg2:
        reg2.register_factory(int, int)

        async with svcs.Container(reg2) as con2:
            services = await con2.aget(
                int, str, bool, tuple, object, float, list, dict, set, bytes
            )
            assert_type(
                services,
                tuple[
                    int,
                    str,
                    bool,
                    tuple,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…