From 64503b9eded3f5f6bd1591a44b6f42b2c4b9b304 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Fri, 20 Jun 2025 23:16:22 +0200 Subject: [PATCH] type `set_committed_value`. Fixes: #12669 Change-Id: I9c73184d4c4880d0cd72eaafe125b3cf48bedf02 (cherry picked from commit 33af5279bbcf77d85f3370ce36d9f81e92c63fd6) --- lib/sqlalchemy/orm/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2