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

Method __ior__

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

Source from the content-addressed store, hash-verified

457 return new_box
458
459 def __ior__(self, other: Mapping[Any, Any]): # type: ignore[override]
460 if not isinstance(other, dict):
461 raise BoxTypeError("Box can only merge two boxes or a box and a dictionary.")
462 self.update(other)
463 return self
464
465 def __sub__(self, other: Mapping[Any, Any]):
466 frozen = self._box_config["frozen_box"]

Calls 2

updateMethod · 0.95
BoxTypeErrorClass · 0.90