Currently is not supported if we have something like:
fromtypingimportTypeVarDriver=TypeVar('Driver')
classConnection(Generic[Driver]):
...
classFakeConnection(Connection[int]):
...
classApp:
def__init__(self, connection: Connection[int]) ->None:
self._connection=connectionWhen we try to resolve Connection as an argument will fail, example:
# ...di.resolve([
(Connection, FakeConnection()),
(App), # will fail
])
Currently is not supported if we have something like:
When we try to resolve Connection as an argument will fail, example: