diff options
Diffstat (limited to 'lib/sqlalchemy/sql/selectable.py')
| -rw-r--r-- | lib/sqlalchemy/sql/selectable.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 836c30af7..a5cbffb5e 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -19,9 +19,11 @@ import itertools from operator import attrgetter import typing from typing import Any as TODO_Any +from typing import Any from typing import NamedTuple from typing import Optional from typing import Tuple +from typing import TypeVar from . import cache_key from . import coercions @@ -72,6 +74,8 @@ from .. import util and_ = BooleanClauseList.and_ +_T = TypeVar("_T", bound=Any) + class _OffsetLimitParam(BindParameter): inherit_cache = True @@ -5528,7 +5532,7 @@ class ScalarSelect(roles.InElementRole, Generative, Grouping): return self -class Exists(UnaryExpression): +class Exists(UnaryExpression[_T]): """Represent an ``EXISTS`` clause. See :func:`_sql.exists` for a description of usage. |
