]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add contextmanager typing, open run_sync typing
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Jul 2022 12:48:55 +0000 (08:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Jul 2022 15:03:31 +0000 (11:03 -0400)
commit10204576215fad27640739c295b9208a0bb3c6ce
tree0aac3a09abd8dd6f41ff16b774cb398e7d457ec1
parentf1dff43a825fe779d52e12d9a823ede0edef9bb0
add contextmanager typing, open run_sync typing

was missing AsyncConnection type for the async
context manager.

fixing that revealed that _SyncConnectionCallable
and _SyncSessionCallable protocols are infeasible because
the given callable can have a lot of different signatures
that are compatible.

Change-Id: I559aa3dd88a902d0e7681c52223bb4bc0890adc1
lib/sqlalchemy/ext/asyncio/engine.py
lib/sqlalchemy/ext/asyncio/session.py
test/ext/mypy/plain_files/async_sessionmaker.py