Currently is not supported if we have something like:
from typing import TypeVar
Driver = TypeVar('Driver')
class Connection(Generic[Driver]):
...
class FakeConnection(Connection[int]):
...
class App:
def __init__(self, connection: Connection[int]) -> None:
self._connection = connection
When 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: