18 lines
495 B
Python
18 lines
495 B
Python
"""Clients module with lazy router exports.
|
|
|
|
Importing client models must not initialise the complete UI/import stack.
|
|
"""
|
|
from __future__ import annotations
|
|
from typing import Any
|
|
|
|
__all__ = ["api_router", "ui_router"]
|
|
|
|
def __getattr__(name: str) -> Any:
|
|
if name == "api_router":
|
|
from .api import router
|
|
return router
|
|
if name == "ui_router":
|
|
from .ui import router
|
|
return router
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|