From: Federico Caselli Date: Fri, 20 Jun 2025 21:16:22 +0000 (+0200) Subject: type `set_committed_value`. X-Git-Tag: rel_2_0_42~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64503b9eded3f5f6bd1591a44b6f42b2c4b9b304;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git type `set_committed_value`. Fixes: #12669 Change-Id: I9c73184d4c4880d0cd72eaafe125b3cf48bedf02 (cherry picked from commit 33af5279bbcf77d85f3370ce36d9f81e92c63fd6) --- diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index 3c4f316451..9c67936871 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -2717,7 +2717,7 @@ def init_state_collection( return adapter -def set_committed_value(instance, key, value): +def set_committed_value(instance: object, key: str, value: Any) -> None: """Set the value of an attribute with no history events. Cancels any previous history present. The value should be