]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
type `set_committed_value`.
authorFederico Caselli <cfederico87@gmail.com>
Fri, 20 Jun 2025 21:16:22 +0000 (23:16 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 20 Jun 2025 21:16:22 +0000 (23:16 +0200)
Fixes: #12669
Change-Id: I9c73184d4c4880d0cd72eaafe125b3cf48bedf02

lib/sqlalchemy/orm/attributes.py

index e8886a11818b36ef502cd5c887b9cdc38b013d8d..8898bffae9b73955015c67b564f94135b062d9c0 100644 (file)
@@ -2735,7 +2735,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