class InterfaceSomeRepo1(ABC): ...
class InterfaceSomeRepo2(ABC): ...
class SomeRepo1(InterfaceSomeRepo1): ...
class SomeRepo2(InterfaceSomeRepo2): ...
class SomeService1:
repo1: InterfaceSomeRepo1
repo2: InterfaceSomeRepo2
class MyProvider(Provider):
repos = provide_all(
SomeRepo1,
SomeRepo2,
)
services = provide_all(
SomeService1,
)
I have a simple example:
I get error Try use
WithParentsor changingprovides. Is any way to resolve conflict without manual mapping interface class with implementation?