]> 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:39 +0000 (23:16 +0200)
Fixes: #12669
Change-Id: I9c73184d4c4880d0cd72eaafe125b3cf48bedf02
(cherry picked from commit 33af5279bbcf77d85f3370ce36d9f81e92c63fd6)

lib/sqlalchemy/orm/attributes.py

index 3c4f31645143abdb17ae0acf661cb62f568fd478..9c679368716b48ff449e0a512ef5ffd12929dfc8 100644 (file)
@@ -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