]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
additional mypy strictness
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Mar 2022 16:57:00 +0000 (11:57 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Mar 2022 16:42:50 +0000 (11:42 -0500)
commit4c28867f944637ef313f98d5f09da05255418c6d
treef68776450fc91df8085446d517020603b879d0f8
parent03989d1dce80999bb9ea1a7d36df3285e5ce4c3b
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
19 files changed:
lib/sqlalchemy/__init__.py
lib/sqlalchemy/engine/__init__.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/cursor.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/types.py
lib/sqlalchemy/util/_collections.py
lib/sqlalchemy/util/_py_collections.py
lib/sqlalchemy/util/langhelpers.py
lib/sqlalchemy/util/typing.py
pyproject.toml
test/engine/test_execute.py
test/sql/test_types.py