feature/csv-clases-materiales

This commit is contained in:
hreyes
2026-03-02 11:33:51 -07:00
parent 9473c05602
commit 2d05ea23cf
10 changed files with 808 additions and 3 deletions

View File

@@ -2,6 +2,20 @@
Módulo de Class
"""
from .routes import router
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}")