Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
FastAPI
A route has a broad return annotation and response_model=PublicUser. Which shape does Fas…
from FastAPI
FastAPI 0.141.1 / Python 3.14
intermediate
1 min
A route has a broad return annotation and response_model=PublicUser. Which shape does FastAPI use for response validation and filtering?
PublicUser, because response_model takes priority
The return annotation, because Python annotations always win
The union of fields from both declarations
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review generated document updater
Review AI code
A new version is available
Reload