Skip to content

liblaf.lazy_loader

Stub-driven lazy exports for package modules.

Use [attach_stub][liblaf.lazy_loader.attach_stub] in a package __init__.py and declare the exported imports in the adjacent .pyi file. The runtime loader supports both package-relative imports and absolute imports while keeping the public surface area small.

Attributes:

__commit_id__ module-attribute

__commit_id__: str | None = None

__version__ module-attribute

__version__: str = '0.2.2.dev3+gbfeacfef8'

__version_tuple__ module-attribute

__version_tuple__: tuple[int | str, ...] = (
    0,
    2,
    2,
    "dev3",
    "gbfeacfef8",
)