diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-29 12:10:23 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-12-29 12:23:12 -0500 |
commit | 97d81d346fe624e7bee818dc7ac9ca00ec343f6d (patch) | |
tree | 84c55a14dcfde1ee2682e769bdeac68b97f0e5bc /lib/sqlalchemy/sql/functions.py | |
parent | 3210348fd41d7efb7871afb24ee4e65a1f88f245 (diff) | |
download | sqlalchemy-97d81d346fe624e7bee818dc7ac9ca00ec343f6d.tar.gz |
remove legacy select patterns
Change-Id: If6e521a1eb461e08748a0432943b938528a2619e
References: #7257
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r-- | lib/sqlalchemy/sql/functions.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index 5d2e78065..fa0b06421 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -8,6 +8,7 @@ """SQL function API, factories, and built-in functions. """ + from . import annotation from . import coercions from . import operators @@ -557,7 +558,7 @@ class FunctionElement(Executable, ColumnElement, FromClause, Generative): self, name, table_value_type=self.type ) - def select(self): + def select(self) -> "Select": """Produce a :func:`_expression.select` construct against this :class:`.FunctionElement`. @@ -566,7 +567,7 @@ class FunctionElement(Executable, ColumnElement, FromClause, Generative): s = select(function_element) """ - s = Select._create_select(self) + s = Select._create(self) if self._execution_options: s = s.execution_options(**self._execution_options) return s |