22 lines
495 B
Python
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}")
|