diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-01-14 22:00:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-01-14 22:00:11 +0000 |
commit | 07cd49daaadd0a0568444eaeccaa79f79cd15ffc (patch) | |
tree | ec6220fb8755c7b8f5be721c9099ab69cba5d82d /lib/sqlalchemy/orm/interfaces.py | |
parent | b4fe2b83ab3ce8cee1e2f4353dfcbea515b4f8d1 (diff) | |
parent | 43f6ae639ca0186f4802255861acdc20f19e702f (diff) | |
download | sqlalchemy-07cd49daaadd0a0568444eaeccaa79f79cd15ffc.tar.gz |
Merge "initial reorganize for static typing" into main
Diffstat (limited to 'lib/sqlalchemy/orm/interfaces.py')
-rw-r--r-- | lib/sqlalchemy/orm/interfaces.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/interfaces.py b/lib/sqlalchemy/orm/interfaces.py index d842df221..df265db57 100644 --- a/lib/sqlalchemy/orm/interfaces.py +++ b/lib/sqlalchemy/orm/interfaces.py @@ -17,6 +17,8 @@ are exposed when inspecting mappings. """ import collections +from typing import Any +from typing import TypeVar from . import exc as orm_exc from . import path_registry @@ -39,6 +41,7 @@ from ..sql import visitors from ..sql.base import ExecutableOption from ..sql.cache_key import HasCacheKey +_T = TypeVar("_T", bound=Any) __all__ = ( "EXT_CONTINUE", @@ -77,7 +80,7 @@ class ORMFromClauseRole(roles.StrictFromClauseRole): @inspection._self_inspects class MapperProperty( - HasCacheKey, _MappedAttribute, InspectionAttr, util.MemoizedSlots + HasCacheKey, _MappedAttribute[_T], InspectionAttr, util.MemoizedSlots ): """Represent a particular class attribute mapped by :class:`_orm.Mapper`. |