diff options
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/_typing.py | 5 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/expression.py | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/_typing.py b/lib/sqlalchemy/sql/_typing.py index 9e83c3f42..513ce78d4 100644 --- a/lib/sqlalchemy/sql/_typing.py +++ b/lib/sqlalchemy/sql/_typing.py @@ -186,8 +186,11 @@ typically represent a single SQL column expression, not a set of columns the way a table or ORM entity does. This includes ColumnElement, or ORM-mapped attributes that will have a -`__clause_element__()` method, it also has the ExpressionElementRole +``__clause_element__()`` method, it also has the ExpressionElementRole overall which brings in the TextClause object also. + +.. versionadded:: 2.0.13 + """ _ColumnExpressionOrLiteralArgument = Union[Any, _ColumnExpressionArgument[_T]] diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 4fa9cda00..f1cb4c276 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -61,6 +61,7 @@ from ._selectable_constructors import tablesample as tablesample from ._selectable_constructors import union as union from ._selectable_constructors import union_all as union_all from ._selectable_constructors import values as values +from ._typing import ColumnExpressionArgument as ColumnExpressionArgument from .base import _from_objects as _from_objects from .base import _select_iterables as _select_iterables from .base import ColumnCollection as ColumnCollection |
