-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with "from __future__ import annotations" #369
Labels
bug
Something isn't working
Comments
More traceback
|
Looks like a bug in fastapi Here it should be using |
This was referenced Feb 20, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! Thank you for this useful library!
I found an issue (maybe I am doing something wrong, though) when using
Dishka
withFastAPI
if the code in the module with the routes containsfrom __future__ import annotations
.Here is a minimal working example, consisting of
main.py
,use_case.py
andentity_router.py
.main.py
use_case.py
entity_router.py
If
entity_router.py
containsfrom __future__ import annotations
, then the application fails on startup.System info:
The text was updated successfully, but these errors were encountered: