Version 4.39.1
Instead of providing the configuration value it returns
<dependency_injector.wiring.Provide object at 0x...>
config is setup as shown
config = providers.Configuration( yaml_files="default.yaml") and default.yaml does exist.
and a call that relies on the dependency looks as below
@inject
def get_consistency_level( consistency_level: str = Provide["config.external.cassandra.parameters.consistency_level"],)
But consistency_level is set to <dependency_injector.wiring.Provide object at 0x7f9b1f9d8d60
Or in other words the dependency injection is not working.
Any tips on fixing this or how to go about debugging this?
Version 4.39.1
Instead of providing the configuration value it returns
<dependency_injector.wiring.Provide object at 0x...>
config is setup as shown
config = providers.Configuration( yaml_files="default.yaml")and default.yaml does exist.and a call that relies on the dependency looks as below
But
consistency_levelis set to<dependency_injector.wiring.Provide object at 0x7f9b1f9d8d60Or in other words the dependency injection is not working.
Any tips on fixing this or how to go about debugging this?