-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Here's an interesting pattern that just works right now:
import dilib
class CarConfig(dilib.Config):
engine_cfg_a = EngineConfigA()
engine_cfg_b = EngineConfigB()
engine_cfg = dilib.Forward(engine_cfg_b)
engine = dilib.Forward(engine_cfg.engine)We should:
- Add unit tests for this
- Document the pattern in the README
- It actually almost just works: we need to fix perturbing the engine cfg
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation