Optimize _Saverdict.update that caused issues for webclient option update (#2224)
This commit is contained in:
parent
668551a0d5
commit
91e2e68291
5 changed files with 10 additions and 5 deletions
|
|
@ -300,6 +300,10 @@ class _SaverDict(_SaverMutable, MutableMapping):
|
|||
def has_key(self, key):
|
||||
return key in self._data
|
||||
|
||||
@_save
|
||||
def update(self, *args, **kwargs):
|
||||
self._data.update(*args, **kwargs)
|
||||
|
||||
|
||||
class _SaverSet(_SaverMutable, MutableSet):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue