项目文件夹

文件
wehub-resource-sync 2c632336aa
CI / Viewer CI (push) Successful in 13m37s
CI / Core CI (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:38 +08:00

30 行
818 B
Python

from __future__ import annotations
from . import v0 as _v0
__all__ = list(_v0.__all__)
_LAZY_EXPORTS = frozenset(name for name in __all__ if name not in vars(_v0))
for _name in __all__:
if _name not in _LAZY_EXPORTS:
globals()[_name] = getattr(_v0, _name)
del _name
def __getattr__(name: str):
if name == "LouverPanelGeometry":
raise AttributeError(
f"module {__name__!r} no longer exposes {name!r}; "
"use 'VentGrilleGeometry' for public vent/grille mesh helpers"
)
try:
value = getattr(_v0, name)
except AttributeError as exc:
raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from exc
globals()[name] = value
return value
def __dir__() -> list[str]:
return sorted(set(globals()) | set(__all__))