MCPcopy
hub / github.com/psf/requests / __init__

Method __init__

src/requests/structures.py:49–57  ·  view source on GitHub ↗
(
        self,
        data: Mapping[str, _VT] | Iterable[tuple[str, _VT]] | None = None,
        **kwargs: _VT,
    )

Source from the content-addressed store, hash-verified

47 _store: OrderedDict[str, tuple[str, _VT]]
48
49 def __init__(
50 self,
51 data: Mapping[str, _VT] | Iterable[tuple[str, _VT]] | None = None,
52 **kwargs: _VT,
53 ) -> None:
54 self._store = OrderedDict()
55 if data is None:
56 data = {}
57 self.update(data, **kwargs)
58
59 def __setitem__(self, key: str, value: _VT) -> None:
60 # Use the lowercased key for lookups, but store the actual

Callers

nothing calls this directly

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected