suned/serum

Support "overriding" dependencies by providing a more specific type

Closed this issue · 0 comments

suned commented

Something like

e1 = Environment(MyComponent)
e2 = e1 | Environment(MyComponentSubType)
with e2:
    assert isinstance(Dependent().my_component, MyComponentSubType)