diff options
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 |