3 ms·
Specifically it's the underlying pydantic that does validation based on annotations https://pydantic-docs.helpmanual.io/ https://pydantic-docs.helpmanual.io/
by kylebarron 4y ago
Specifically it's the underlying pydantic that does validation based on annotations
https://pydantic-docs.helpmanual.io/ https://pydantic-docs.helpmanual.io/
- BiteCode_dev 4y agoIndeed. The dep injection is fastapi and typer code though, and quite tied to it. So it's worth mentioning that somebody is attempting (quite successfully from the look of it) to create a generic lib of dep injection using annotation named DI, inspired by those libs: https://github.com/adriangb/di https://github.com/adriangb/di