/
/
/
1"""Music Assistant: The music library manager in python."""
2
3from typing import TYPE_CHECKING, Any
4
5if TYPE_CHECKING:
6 from .mass import MusicAssistant
7
8__all__ = ("MusicAssistant",)
9
10
11# MusicAssistant is re-exported lazily (PEP 562): importing it pulls in the full
12# server (all controllers and their deps), which submodule-only consumers such as
13# `import music_assistant.constants` must not pay for.
14def __getattr__(name: str) -> Any:
15 if name == "MusicAssistant":
16 from .mass import MusicAssistant # noqa: PLC0415
17
18 return MusicAssistant
19 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
20