FAQ¶
ServiceNotFoundError on resolve¶
- Ensure the type or generic key has been registered
- For
Optional[T], absence will not raise errors
How to debug circular dependencies?¶
- Use diagnostics and dependency graph visualization (
visualizationmodule)
Async services¶
- Unified interface supports async; simply
awaitmethods as needed
How to mock in tests?¶
- Use
register(..., override=True)to replace existing registrations