summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/typing.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/util/typing.py')
-rw-r--r--lib/sqlalchemy/util/typing.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/sqlalchemy/util/typing.py b/lib/sqlalchemy/util/typing.py
index 291061561..160eabd85 100644
--- a/lib/sqlalchemy/util/typing.py
+++ b/lib/sqlalchemy/util/typing.py
@@ -7,8 +7,6 @@ from typing import Callable # noqa
from typing import cast
from typing import Dict
from typing import ForwardRef
-from typing import Generic
-from typing import overload
from typing import Type
from typing import TypeVar
from typing import Union
@@ -58,35 +56,6 @@ else:
from typing import ParamSpec as ParamSpec # noqa F401
-class _TypeToInstance(Generic[_T]):
- """describe a variable that moves between a class and an instance of
- that class.
-
- """
-
- @overload
- def __get__(self, instance: None, owner: Any) -> Type[_T]:
- ...
-
- @overload
- def __get__(self, instance: object, owner: Any) -> _T:
- ...
-
- def __get__(self, instance: object, owner: Any) -> Union[Type[_T], _T]:
- ...
-
- @overload
- def __set__(self, instance: None, value: Type[_T]) -> None:
- ...
-
- @overload
- def __set__(self, instance: object, value: _T) -> None:
- ...
-
- def __set__(self, instance: object, value: Union[Type[_T], _T]) -> None:
- ...
-
-
def de_stringify_annotation(
cls: Type[Any], annotation: Union[str, Type[Any]]
) -> Union[str, Type[Any]]: