implement _SaverDict | _SaverDict
This commit is contained in:
parent
18990b52c0
commit
d91b4ecaff
1 changed files with 3 additions and 0 deletions
|
|
@ -243,6 +243,9 @@ class _SaverMutable(object):
|
||||||
def __or__(self, other):
|
def __or__(self, other):
|
||||||
return self._data | other
|
return self._data | other
|
||||||
|
|
||||||
|
def __ror__(self, other):
|
||||||
|
return self._data | other
|
||||||
|
|
||||||
@_save
|
@_save
|
||||||
def __setitem__(self, key, value):
|
def __setitem__(self, key, value):
|
||||||
self._data.__setitem__(key, self._convert_mutables(value))
|
self._data.__setitem__(key, self._convert_mutables(value))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue