from typing import TYPE_CHECKING, Any

from ._color_combobox import QColorComboBox
from ._enum_combobox import QEnumComboBox
from ._searchable_combo_box import QSearchableComboBox

__all__ = (
    "QColorComboBox",
    "QColormapComboBox",
    "QEnumComboBox",
    "QSearchableComboBox",
)


if TYPE_CHECKING:
    from superqt.cmap import QColormapComboBox  # noqa: TC004


def __getattr__(name: str) -> Any:  # pragma: no cover
    if name == "QColormapComboBox":
        from superqt.cmap import QColormapComboBox

        return QColormapComboBox
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
