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

Method __ior__

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

Source from the content-addressed store, hash-verified

546 return rv
547
548 def __ior__(
549 self,
550 other: (
551 cabc.Mapping[str, t.Any | list[t.Any] | tuple[t.Any, ...] | cabc.Set[t.Any]]
552 | cabc.Iterable[tuple[str, t.Any]]
553 ),
554 ) -> te.Self:
555 if not isinstance(other, (cabc.Mapping, cabc.Iterable)):
556 return NotImplemented
557
558 self.update(other)
559 return self
560
561 def to_wsgi_list(self) -> list[tuple[str, str]]:
562 """Convert the headers into a list suitable for WSGI.

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected