]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add full parameter types for ORM with_for_update
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 May 2023 15:08:07 +0000 (11:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 May 2023 19:24:11 +0000 (15:24 -0400)
commit189039b9d38343b482f1b077bbcf6f6ae99cbacd
treea4f853e10dd00ae2de18e8a32139b925dfcbd2c5
parent987285fb4b13c39bcc6b8922e618d9e830577dda
add full parameter types for ORM with_for_update

Fixed typing for the :paramref:`_orm.Session.get.with_for_update` parameter
of :meth:`_orm.Session.get` and :meth:`_orm.Session.refresh` (as well as
corresponding methods on :class:`_asyncio.AsyncSession`) to accept boolean
``True`` and all other argument forms accepted by the parameter at runtime.

Fixes: #9762
Change-Id: Ied4d37a269906b3d9be5ab7d31a2fa863360cced
doc/build/changelog/unreleased_20/9762.rst [new file with mode: 0644]
lib/sqlalchemy/ext/asyncio/scoping.py
lib/sqlalchemy/ext/asyncio/session.py
lib/sqlalchemy/orm/scoping.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/sql/selectable.py
test/ext/mypy/plain_files/session.py