Fix ProxyDictPostWrite.update() does not trigger write-back to backend (#985)

This commit is contained in:
allegroai 2023-04-23 10:34:39 +03:00
parent 9f9af85a2a
commit 71e1608ad8

View File

@ -39,9 +39,11 @@ class ProxyDictPostWrite(dict):
return a_dict
def update(self, E=None, **F):
return super(ProxyDictPostWrite, self).update(
res = super(ProxyDictPostWrite, self).update(
ProxyDictPostWrite(self._update_obj, self._set_callback, E) if E is not None else
ProxyDictPostWrite(self._update_obj, self._set_callback, **F))
self._set_callback()
return res
class ProxyDictPreWrite(dict):