Merge pull request #2813 from aogier/feature/2789-reflected-or

implement _SaverMutable | _SaverMutable
This commit is contained in:
Griatch 2022-08-02 14:13:05 +02:00 committed by GitHub
commit b965a51303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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))