-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
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 = connectionWhen we try to resolve Connection as an argument will fail, example:
# ...
di.resolve([
(Connection, FakeConnection()),
(App), # will fail
])Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed