mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-28 02:58:18 +08:00
Add pop and update
This commit is contained in:
@@ -205,6 +205,16 @@ class MutationDict(MutationObj, dict):
|
||||
def __setstate__(self, state):
|
||||
self.update(state)
|
||||
|
||||
def pop(self, *args, **kw):
|
||||
value = super().pop(*args, **kw)
|
||||
self.changed()
|
||||
return value
|
||||
|
||||
def update(self, *args, **kwargs):
|
||||
value = super().update(*args, **kwargs)
|
||||
self.changed()
|
||||
return value
|
||||
|
||||
|
||||
class MutationList(MutationObj, list):
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user