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

Method __add__

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

Source from the content-addressed store, hash-verified

415 self._box_config["__created"] = True
416
417 def __add__(self, other: Mapping[Any, Any]):
418 if not isinstance(other, dict):
419 raise BoxTypeError("Box can only merge two boxes or a box and a dictionary.")
420 new_box = self.copy()
421 new_box.merge_update(other, _force_unfrozen=True) # type: ignore[attr-defined]
422 return new_box
423
424 def __radd__(self, other: Mapping[Any, Any]):
425 if not isinstance(other, dict):

Callers

nothing calls this directly

Calls 3

copyMethod · 0.95
BoxTypeErrorClass · 0.90
merge_updateMethod · 0.45

Tested by

no test coverage detected