From d868f7914cd0617d529a6067e8ec7843692f8937 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 9 Apr 2021 09:25:04 -0400 Subject: document scalar_subquery() with column_property() Other doc cleanups and fixes as well, including more explicitness that declarative attribute assignment only works when a declarative base is involved; other forms need to call add_property() directly. Fixes: #6225 Change-Id: I123c3fb35cfa788b96bac7ab640f6de857d003d6 --- lib/sqlalchemy/sql/selectable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql') diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index f12744cfa..2a221cdf0 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -5883,7 +5883,7 @@ class ScalarSelect(roles.InElementRole, Generative, Grouping): """Represent a scalar subquery. - A :class:`_sql.ScalarSubquery` is created by invoking the + A :class:`_sql.ScalarSelect` is created by invoking the :meth:`_sql.SelectBase.scalar_subquery` method. The object then participates in other SQL expressions as a SQL column expression within the :class:`_sql.ColumnElement` hierarchy. -- cgit v1.2.1