431 B
431 B
FastAPI vs Python
Use this to capture places where FastAPI/Starlette conventions deliberately differ from broader Python guidance.
Examples to watch for:
- DI through callables and annotations instead of explicit constructor wiring
- framework-facing Pydantic models at transport boundaries
- async-first request handlers even when core logic stays sync
- startup/lifespan hooks instead of plain context management entrypoints