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.69k stars 295 forks source link

Static typechecking for Configuration? #774

Open jasonprado opened 5 months ago

jasonprado commented 5 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.