ets-labs / python-dependency-injector

Dependency injection framework for Python
https://python-dependency-injector.ets-labs.org/
BSD 3-Clause "New" or "Revised" License
3.99k stars 305 forks source link

Static typechecking for Configuration? #774

Open jasonprado opened 10 months ago

jasonprado commented 10 months ago

Is there a way to use type hints with providers.Configuration? Right now I'm loading config settings in with from_env or from_yaml then injecting them them using Container.config.foo.bar, but I don't know until my code executes if I spelled the name of the config right.