From 4c28867f944637ef313f98d5f09da05255418c6d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 10 Mar 2022 11:57:00 -0500 Subject: additional mypy strictness enable type checking within untyped defs. This allowed some more internals to be fixed up with assertions etc. some internals that were unnecessary or not even used at all were removed. BaseCursorResult was no longer necessary since we only have one kind of CursorResult now. The different ResultProxy subclasses that had alternate "strategies" dont appear to be used at all even in 1.4.x, as there's no code that accesses the _cursor_strategy_cls attribute, which is also removed. As these were mostly private constructs that weren't even functioning correctly in any case, it's fine to remove these over the 2.0 boundary. Change-Id: Ifd536987d104b1cd8b546cefdbd5c1e5d1801082 --- lib/sqlalchemy/sql/selectable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/selectable.py') diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index a5cbffb5e..e5c2bef68 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -62,6 +62,7 @@ from .elements import ClauseElement from .elements import ClauseList from .elements import ColumnClause from .elements import ColumnElement +from .elements import DQLDMLClauseElement from .elements import GroupedElement from .elements import Grouping from .elements import literal_column @@ -85,7 +86,7 @@ class _OffsetLimitParam(BindParameter): return self.effective_value -class ReturnsRows(roles.ReturnsRowsRole, ClauseElement): +class ReturnsRows(roles.ReturnsRowsRole, DQLDMLClauseElement): """The base-most class for Core constructs that have some concept of columns that can represent rows. -- cgit v1.2.1