diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-03-12 19:59:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-03-12 19:59:29 +0000 |
commit | 77fc8216a74e6b2d0efc6591c6c735687bd10002 (patch) | |
tree | e338f22897ce9bcc994d625ad71aeb4b8ca7b446 /lib/sqlalchemy/util/typing.py | |
parent | df056af49c51dcbcd70eb13ead5c3d8588c08235 (diff) | |
parent | 4c28867f944637ef313f98d5f09da05255418c6d (diff) | |
download | sqlalchemy-77fc8216a74e6b2d0efc6591c6c735687bd10002.tar.gz |
Merge "additional mypy strictness" into main
Diffstat (limited to 'lib/sqlalchemy/util/typing.py')
-rw-r--r-- | lib/sqlalchemy/util/typing.py | 31 |
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]]: |