(self, other: Mapping[Any, Any])
| 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"] |