]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
typing: annotate Exists.select() to return Select[bool] 11233/head
authorwouter bolsterlee <wouter@bolsterl.ee>
Thu, 4 Apr 2024 09:03:06 +0000 (11:03 +0200)
committerwouter bolsterlee <wouter@bolsterl.ee>
Thu, 4 Apr 2024 09:08:45 +0000 (11:08 +0200)
commit1bec1cac731eb42e097948f84ae3d0ef133f8a9a
tree784683aed27964aa2f270079ae31b65578b178e2
parentd3222a31b8df97a454b37a32881dd484a06e5742
typing: annotate Exists.select() to return Select[bool]

Fixes: #11231
A query of the form:

    SELECT EXISTS (
        SELECT 1
        FROM ...
        WHERE ...
    )

… returns a boolean.
lib/sqlalchemy/sql/selectable.py
test/typing/plain_files/sql/common_sql_element.py