From: Christian Heller Date: Thu, 11 Sep 2025 22:04:09 +0000 (+0200) Subject: Fix non-transmission of dictionary clearing. X-Git-Url: https://plomlompom.com/repos/reset_cookie?a=commitdiff_plain;h=01823a3497327da4429817bb365e84a69ce3ab1e;p=ircplom Fix non-transmission of dictionary clearing. --- diff --git a/ircplom/client.py b/ircplom/client.py index a2c78b2..12da45c 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -207,6 +207,8 @@ class IntoEndnodeUpdatesMixin(AutoAttrMixin): if isinstance(self, _Completable): return ([(path, self._completed)] if self._completed is not None else []) + if isinstance(self, Dict) and not self._dict: + return [(path, None)] updates = [] for key, val in (self._dict.items() if isinstance(self, Dict) else ((k, getattr(self, k))