MCPcopy
hub / github.com/pallets/werkzeug / __or__

Method __or__

src/werkzeug/datastructures/headers.py:535–546  ·  view source on GitHub ↗
(
        self,
        other: cabc.Mapping[
            str, t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]
        ],
    )

Source from the content-addressed store, hash-verified

533 self.set(key, value)
534
535 def __or__(
536 self,
537 other: cabc.Mapping[
538 str, t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]
539 ],
540 ) -> te.Self:
541 if not isinstance(other, cabc.Mapping):
542 return NotImplemented
543
544 rv = self.copy()
545 rv.update(other)
546 return rv
547
548 def __ior__(
549 self,

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected