From: Mike Bayer Date: Thu, 15 Apr 2021 16:32:04 +0000 (-0400) Subject: apply **kw to SchemaEventTarget._set_parent X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5e825727905d1d8a2975c2f96e2cbeb771896f8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git apply **kw to SchemaEventTarget._set_parent Fixed issue in the ``SchemaEventTarget._set_parent`` method that was missing ``**kw`` in its argument signature which was added to this private method as part of :ticket:`6152`. The method is not invoked internally, but could potentially be used by a third party system, as well as that the lack of a proper signature could be misleading in debugging other issues. Change-Id: I00dce3e533183969b09946f3e918cb30e1154623 References: #6282 --- diff --git a/doc/build/changelog/unreleased_13/set_parent.rst b/doc/build/changelog/unreleased_13/set_parent.rst new file mode 100644 index 0000000000..5d7fe77a33 --- /dev/null +++ b/doc/build/changelog/unreleased_13/set_parent.rst @@ -0,0 +1,10 @@ +.. change:: + :tags: bug, regression, schema + :tickets: 6282 + + Fixed issue in the ``SchemaEventTarget._set_parent`` method that was + missing ``**kw`` in its argument signature which was added to this private + method as part of :ticket:`6152`. The method is not invoked internally, but + could potentially be used by a third party system, as well as that the lack + of a proper signature could be misleading in debugging other issues. + diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index ec8cbcf225..7cd60aefef 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -453,7 +453,7 @@ class SchemaEventTarget(object): """ - def _set_parent(self, parent): + def _set_parent(self, parent, **kw): """Associate with this SchemaEvent's parent object.""" def _set_parent_with_dispatch(self, parent, **kw):