MCPcopy
hub / github.com/encode/starlette / __ior__

Method __ior__

starlette/datastructures.py:614–618  ·  view source on GitHub ↗
(self, other: Mapping[str, str])

Source from the content-addressed store, hash-verified

612 del self._list[idx]
613
614 def __ior__(self, other: Mapping[str, str]) -> MutableHeaders:
615 if not isinstance(other, Mapping):
616 raise TypeError(f"Expected a mapping but got {other.__class__.__name__}")
617 self.update(other)
618 return self
619
620 def __or__(self, other: Mapping[str, str]) -> MutableHeaders:
621 if not isinstance(other, Mapping):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected