-
- Notifications
You must be signed in to change notification settings - Fork 338
Closed
Labels
Description
class Base(containers.DeclarativeContainer): config = providers.Configuration() redis = providers.Singleton(str, config.redis_url.required()) @containers.copy(Base) class Foo(Base): # redis = providers.Dependency() - not work with parent resource definition bar = providers.Singleton(str, Base.redis) # how to properly refer to parent redis? foo = Foo() foo.config.redis_url.override("redis://") foo.bar() # Error: Undefined configuration option "config.redis_url"