-
- Notifications
You must be signed in to change notification settings - Fork 338
Closed
Description
Hello,
I have quite a nested configuration file that contains a lot of lists.
I would like to inject a specific element into a provider, which would look like:
config = providers.Configuration(defaults={'index': 0, 'items': list('a', 'b', 'c')}) foo= providers.Factory(Foo, item=config.items[config.index])
However, I was prompted:
TypeError: 'dependency_injector.providers.Configuration' object is not subscriptable
Anyone has idea about this? Thank you.