diff --git a/src/svcs/pyramid.py b/src/svcs/pyramid.py index 4de888e..7e28b29 100644 --- a/src/svcs/pyramid.py +++ b/src/svcs/pyramid.py @@ -5,7 +5,7 @@ from __future__ import annotations from collections.abc import Callable -from typing import Any, Protocol, TypeVar, overload +from typing import Any, Protocol, overload import attrs @@ -17,7 +17,20 @@ import svcs -from ._core import _KEY_CONTAINER, _KEY_REGISTRY +from ._core import ( + _KEY_CONTAINER, + _KEY_REGISTRY, + T1, + T2, + T3, + T4, + T5, + T6, + T7, + T8, + T9, + T10, +) def svcs_from(request: Request | None = None) -> svcs.Container: @@ -181,18 +194,6 @@ def get_abstract(*svc_types: type) -> Any: return get(*svc_types) -T1 = TypeVar("T1") -T2 = TypeVar("T2") -T3 = TypeVar("T3") -T4 = TypeVar("T4") -T5 = TypeVar("T5") -T6 = TypeVar("T6") -T7 = TypeVar("T7") -T8 = TypeVar("T8") -T9 = TypeVar("T9") -T10 = TypeVar("T10") - - @overload def get(svc_type: type[T1], /) -> T1: ...