]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix typing issue in `MetaData.reflect()` with asyncio.
authorFrancisco Del Roio <francipvb@hotmail.com>
Fri, 5 Apr 2024 16:05:51 +0000 (12:05 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 10 Apr 2024 19:01:36 +0000 (21:01 +0200)
commit40fc02d93f3f8b4d9ae2f7bf987f5f965a761dd4
tree7202981c4d0db4c14fce06ce6a17ca8f13eb91c7
parentd3222a31b8df97a454b37a32881dd484a06e5742
Fix typing issue in `MetaData.reflect()` with asyncio.

Fixed typing regression caused by PR :ticket:`11055` in version 2.0.29 that
attempted to add ``ParamSpec`` to the asyncio ``run_sync()`` methods, where
using :meth:`_asyncio.AsyncConnection.run_sync` with
meth:`_schema.MetaData.reflect` would fail on mypy due to a bug.
See https://github.com/python/mypy/issues/17093 for details.
Pull request courtesy of Francisco R. Del Roio

Fixes: #11200
Closes: #11201
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/11201
Pull-request-sha: 49e10e0d2a7bbadf471212033e25b7616b99c092

Change-Id: Ie2ebaebd1bc1ee1b865b78561cb6cb8937e85eca
doc/build/changelog/unreleased_20/11200.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/typing/plain_files/ext/asyncio/engines.py