diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2023-01-28 16:09:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2023-01-28 16:09:51 +0000 |
commit | 586df197615d91af56aefc0d5ff94ceac13154eb (patch) | |
tree | ee5c251a0d5fdea7a683d0352a3ba688cf26e6b9 /lib/sqlalchemy/sql | |
parent | 70d1de6cff816d4627dd6b72223d9796e28aca1e (diff) | |
parent | 9c4267f2442145378922498ca735d96c8f4bca42 (diff) | |
download | sqlalchemy-586df197615d91af56aefc0d5ff94ceac13154eb.tar.gz |
Merge "Set correct type annotations for ColumnElement.cast" into main
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r-- | lib/sqlalchemy/sql/elements.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index 71d8cb2d3..c3f7b884c 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -1641,7 +1641,7 @@ class ColumnElement( co._is_clone_of = selectable._is_clone_of.columns.get(key) return key, co - def cast(self, type_: TypeEngine[_T]) -> Cast[_T]: + def cast(self, type_: _TypeEngineArgument[_T]) -> Cast[_T]: """Produce a type cast, i.e. ``CAST(<expression> AS <type>)``. This is a shortcut to the :func:`_expression.cast` function. |