implement _SaverDict | _SaverDict

This commit is contained in:
Alessandro Ogier 2022-07-25 16:30:44 +02:00
parent 18990b52c0
commit d91b4ecaff

View file

@ -243,6 +243,9 @@ class _SaverMutable(object):
def __or__(self, other):
return self._data | other
def __ror__(self, other):
return self._data | other
@_save
def __setitem__(self, key, value):
self._data.__setitem__(key, self._convert_mutables(value))