diff --git a/wireup/ioc/dependency_container.py b/wireup/ioc/dependency_container.py index d69c148..cb90e60 100644 --- a/wireup/ioc/dependency_container.py +++ b/wireup/ioc/dependency_container.py @@ -3,7 +3,7 @@ import asyncio import functools import sys -from typing import TYPE_CHECKING, Any, Callable, Tuple, TypeVar, overload +from typing import TYPE_CHECKING, Any, Callable, Optional, Tuple, TypeVar, overload from .override_manager import OverrideManager @@ -35,7 +35,7 @@ from .parameter import ParameterBag __T = TypeVar("__T") -__ObjectIdentifier = Tuple[type, Qualifier | None] +__ObjectIdentifier = Tuple[type, Optional[Qualifier]] class DependencyContainer: