You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test2.py", line 8, in <module>
class C2(containers.DeclarativeContainer):
File "test2.py", line 10, in C2
foo = c1.deps.foo
^^^^^^^^^^^
File "src/dependency_injector/providers.pyx", line 847, in dependency_injector.providers.Dependency.__getattr__
AttributeError: Provider "Dependency" has no attribute "foo"
Could you, please, advise on how to achieve this?
I noticed a similar issue when nested level is a Configuration provider.
class C1(containers.DeclarativeContainer):
# deps = providers.DependenciesContainer()
config = providers.Configuration()
The text was updated successfully, but these errors were encountered:
Hey @rmk135
Thank you for a great project!
Your example works perfect for DeclarativeContainers.
However, I'm using a DynamicContainer at the lowest level.
This seems to cause confusion.
Outputs:
Could you, please, advise on how to achieve this?
I noticed a similar issue when nested level is a Configuration provider.
The text was updated successfully, but these errors were encountered: