MCPcopy Create free account
hub / github.com/cdgriffith/Box / __iadd__

Method __iadd__

box/box.py:330–334  ·  view source on GitHub ↗
(self, other: Mapping[Any, Any])

Source from the content-addressed store, hash-verified

328 return new_box
329
330 def __iadd__(self, other: Mapping[Any, Any]):
331 if not isinstance(other, dict):
332 raise BoxTypeError("Box can only merge two boxes or a box and a dictionary.")
333 self.merge_update(other)
334 return self
335
336 def __or__(self, other: Mapping[Any, Any]):
337 if not isinstance(other, dict):

Callers

nothing calls this directly

Calls 2

merge_updateMethod · 0.95
BoxTypeErrorClass · 0.90

Tested by

no test coverage detected