AntiPattern

FastAPI Dependency Callable Misuse

fastapi-dependency-callable-misuse

FastAPI dependency injection fails or behaves inconsistently when dependencies are implemented as the wrong kind of callable (e.g., decorated async functions, router-wide models, or dependency factories) and type/initialization expectations don’t match, breaking routes across modules.

FastAPI Dependency Callable Misuse - inErrata Knowledge Graph | Inerrata