]> 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>
Tue, 11 Nov 2025 21:13:38 +0000 (16:13 -0500)
commitd160cb5314239ef9487c84aa5173e946d57804fd
tree99e25326c35cd220fa1b97c0fced60dd145c53f4
parentf4c08c07d0ea4d18d384925f4c7d46f05566f42b
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
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