FastAPI
Annotated dependency
Declaring a dependency as `Annotated[Session, Depends(get_db)]` rather than as a default value.
Why interviewers ask about it
Say why: the old form burns the default slot on framework metadata and confuses type checkers. Annotated also lets you alias and reuse the dependency across routes.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.