]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
improve return type for QueryableAttribute.and_()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Apr 2023 13:42:50 +0000 (09:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 18 Apr 2023 15:20:47 +0000 (11:20 -0400)
commit756501b65a9c88790c1947d7c39956bfc374b8e8
tree82c47a83a32c995c95645ec0ebe7962d24b3ff8d
parent0112b3e2dc15f115f4b560bfc761e00fe1d4de24
improve return type for QueryableAttribute.and_()

Fixed typing issue where :meth:`_orm.PropComparator.and_` expressions would
not be correctly typed inside of loader options such as
:func:`_orm.selectinload`.

Fixes: #9669
Change-Id: I874cb22c004e0a24f2b7f530fda542de2c4c6d3b
doc/build/changelog/unreleased_20/9669.rst [new file with mode: 0644]
lib/sqlalchemy/orm/attributes.py
test/ext/mypy/plain_files/orm_querying.py [new file with mode: 0644]