Question · Python course · Module 6: Async and FastAPI
Dependency Injection
What does Depends() do in FastAPI?
Answer options
- Creates copies of objects
- Checks package dependencies
- Imports modules
- Injects dependencies into endpoints (e.g., a database session)
You can check the correct answer by solving this task in the CodeWorlds game.