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

Method __ior__

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

Source from the content-addressed store, hash-verified

354 return new_box
355
356 def __ior__(self, other: Mapping[Any, Any]): # type: ignore[override]
357 if not isinstance(other, dict):
358 raise BoxTypeError("Box can only merge two boxes or a box and a dictionary.")
359 self.update(other)
360 return self
361
362 def __sub__(self, other: Mapping[Any, Any]):
363 frozen = self._box_config["frozen_box"]

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
BoxTypeErrorClass · 0.90

Tested by

no test coverage detected