]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Result.__enter__ annotation
authorMartin Baláž <embeembe@gmail.com>
Sun, 22 Jan 2023 16:16:56 +0000 (11:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 23 Jan 2023 16:00:02 +0000 (11:00 -0500)
commitd663f4d5bd3685eb8e074b3ec8d9a5c7baba3d32
tree50faabe8f8aa1b0ab03f476a8b9b9588d63c1573
parent2f91dd79310657814ad28b6ef64f91fff7a007c9
Result.__enter__ annotation

Fixed typing issue where the object type when using :class:`_engine.Result`
as a context manager were not preserved, indicating :class:`_engine.Result`
in all cases rather than the specific :class:`_engine.Result` sub-type.
Pull request courtesy Martin Baláž.

Fixes: #9136
Closes: #9135
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/9135
Pull-request-sha: 97a9829db59db359fbb400ec0d913bdf8954f00a

Change-Id: I60a7f89ba39bf0f9fc5e6e7bf09f642167fe476f
doc/build/changelog/unreleased_20/more_typing.rst
lib/sqlalchemy/engine/result.py
test/ext/mypy/plain_files/typed_results.py