You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Thank you for the library 🙏 , I am really enjoying it
I found quite a weird edge case: when I import service decorator and there is from __future__ import annotations, then the dependency injection fails with missing {n} required positional arguments error
The text was updated successfully, but these errors were encountered:
almeynman
changed the title
from __future__ import annotations breaks dependency injectionfrom __future__ import annotations breaks dependency injection
Nov 19, 2024
Hi! Yes, sadly the library won't work at the moment with future annotations as the types are stringified. inspect.get_annotations is also only available from Python 3.10 so this would need a backport.
Looks like typing_extensions will have it in the next release, 4.13.
Hi. Thank you for the library 🙏 , I am really enjoying it
I found quite a weird edge case: when I import
service
decorator and there isfrom __future__ import annotations
, then the dependency injection fails withmissing {n} required positional arguments
errorThe text was updated successfully, but these errors were encountered: