]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
update is_precedent() annotation to accept against=None 10643/head
authorMartijn Pieters <mj@zopatista.com>
Sat, 18 Nov 2023 15:03:37 +0000 (15:03 +0000)
committerMartijn Pieters <mj@zopatista.com>
Sat, 18 Nov 2023 15:14:33 +0000 (15:14 +0000)
commit6137b7b995b6ea0bd4e4195c5693d2312fa26639
treec2409107cc56f276e034cf4db69cbc08ea8be7d1
parent2fb5778579abc90f3189c9631a8f0861a3930bbf
update is_precedent() annotation to accept against=None

This is commonly passed in already by `.self_group()` calls where
`against` defaults to `None`.

Handle `against is None` explicitly as the standard type stubs only
accepts the key type for the second argument to `dict.get()`.
lib/sqlalchemy/sql/operators.py