Neoteroi / rodi

Implementation of dependency injection for Python 3
MIT License
179 stars 17 forks source link

Improve typing of `inject` #57

Open sobolevn opened 4 months ago

sobolevn commented 4 months ago

globals() and locals() are both returning dict[str, Any]:

inject only add two protected attributes to a function / type. So, we can say that it returns the object unchanged: T -> T.