summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Rio <arthurio@users.noreply.github.com>2022-02-23 13:50:25 -0700
committerGitHub <noreply@github.com>2022-02-23 21:50:25 +0100
commitd8f869aa7994db991c53d3cb008cbef34a1bfe49 (patch)
tree2007a05ef17463965ad7601a3e6c70e3c5d21401
parentbaa2220e44cc0254ed0302282a7205252f75a79c (diff)
downloadsqlalchemy-d8f869aa7994db991c53d3cb008cbef34a1bfe49.tar.gz
Fix signature for modified_json example (#7709)
-rw-r--r--lib/sqlalchemy/ext/mutable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/mutable.py b/lib/sqlalchemy/ext/mutable.py
index d75cf667b..7f3aad8b0 100644
--- a/lib/sqlalchemy/ext/mutable.py
+++ b/lib/sqlalchemy/ext/mutable.py
@@ -219,7 +219,7 @@ from within the mutable extension::
data = Column(MutableDict.as_mutable(JSONEncodedDict))
@event.listens_for(MyDataClass.data, "modified")
- def modified_json(instance):
+ def modified_json(instance, initiator):
print("json value modified:", instance.data)
.. _mutable_composites: