Files
plantillas-proyectos/backend/api/v1/modules/a76/classes/__init__.py
2026-03-02 11:33:51 -07:00

22 lines
495 B
Python

"""
Módulo de Class
"""
from typing import Any
__all__ = ["router"]
def __getattr__(name: str) -> Any:
"""
Lazy export to avoid circular imports during Celery init.
This package is imported when models are loaded (e.g. a76.items.models),
so importing FastAPI routes at import-time can break Celery startup.
"""
if name == "router":
from .routes import router
return router
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")