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

Method __delitem__

src/werkzeug/datastructures/structures.py:1181–1185  ·  view source on GitHub ↗
(self: te.Self, idx: t.SupportsIndex)

Source from the content-addressed store, hash-verified

1179 return self._headers[idx]
1180
1181 def __delitem__(self: te.Self, idx: t.SupportsIndex) -> None:
1182 rv = self._headers.pop(idx)
1183 self._set.remove(rv.lower())
1184 if self.on_update is not None:
1185 self.on_update(self)
1186
1187 def __setitem__(self: te.Self, idx: t.SupportsIndex, value: str) -> None:
1188 old = self._headers[idx]

Callers

nothing calls this directly

Calls 3

popMethod · 0.45
removeMethod · 0.45
on_updateMethod · 0.45

Tested by

no test coverage detected