]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Typing: fix type of func.coalesce when used with hybrid properties
authorYannick PÉROUX <yannick.peroux@getalma.eu>
Tue, 4 Nov 2025 17:58:03 +0000 (12:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 12 Nov 2025 00:45:17 +0000 (19:45 -0500)
commit7302a56d739f259047f0f1d52f97c79d18556a56
tree176476442669b57df5c6bb6df46e43da4f43ff30
parent21378a3ce170e90b4b4a131c7ef802d0f6abb528
Typing: fix type of func.coalesce when used with hybrid properties

Fixed typing issue where :class:`.coalesce` would not return the correct
return type when a nullable form of that argument were passed, even though
this function is meant to select the non-null entry among possibly null
arguments.  Pull request courtesy Yannick PÉROUX.

Closes: #12963
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12963
Pull-request-sha: 05d0d9784d4497fb3bfee540fbc51747c1767c90

Change-Id: Ife83a384ea57faf446c1fdb542df14627348f40f
(cherry picked from commit d160cb5314239ef9487c84aa5173e946d57804fd)
doc/build/changelog/unreleased_20/12963.rst [new file with mode: 0644]
lib/sqlalchemy/sql/functions.py
test/typing/plain_files/sql/functions_again.py
tools/generate_sql_functions.py