From 4e754a8914a1c2c16c97bdf363d2e24bfa823730 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 25 Mar 2022 17:08:48 -0400 Subject: pep-484: the pep-484ening, SQL part three hitting DML which is causing us to open up the ColumnCollection structure a bit, as we do put anonymous column expressions with None here. However, we still want Table /TableClause to have named column collections that don't return None, so parametrize the "key" in this collection also. * rename some "immutable" elements to "readonly". we change the contents of immutablecolumncollection underneath, so it's not "immutable" Change-Id: I2593995a4e5c6eae874bed5bf76117198be8ae97 --- lib/sqlalchemy/sql/_selectable_constructors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/sql/_selectable_constructors.py') diff --git a/lib/sqlalchemy/sql/_selectable_constructors.py b/lib/sqlalchemy/sql/_selectable_constructors.py index e9acc7e6d..a17ee4ce8 100644 --- a/lib/sqlalchemy/sql/_selectable_constructors.py +++ b/lib/sqlalchemy/sql/_selectable_constructors.py @@ -12,7 +12,7 @@ from typing import Optional from . import coercions from . import roles -from ._typing import _ColumnsClauseElement +from ._typing import _ColumnsClauseArgument from .elements import ColumnClause from .selectable import Alias from .selectable import CompoundSelect @@ -281,7 +281,7 @@ def outerjoin(left, right, onclause=None, full=False): return Join(left, right, onclause, isouter=True, full=full) -def select(*entities: _ColumnsClauseElement) -> Select: +def select(*entities: _ColumnsClauseArgument) -> Select: r"""Construct a new :class:`_expression.Select`. -- cgit v1.2.1