MCPcopy Create free account
hub / github.com/celery/celery / update

Method update

celery/utils/collections.py:299–309  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

297 self[key] = default
298
299 def update(self, *args, **kwargs):
300 # type: (*Any, **Any) -> Any
301 if args:
302 # args contains at most one item: a mapping, or a list, tuple, or
303 # generator of key/value pairs. Normalize it to a dict so
304 # observers always receive one consistent, reusable format.
305 args = dict(*args),
306 result = self.changes.update(*args, **kwargs)
307 for callback in self._observers:
308 callback(*args, **kwargs)
309 return result
310
311 def __repr__(self):
312 # type: () -> str

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
swap_withMethod · 0.45

Calls 1

callbackFunction · 0.85