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

Method __delitem__

src/werkzeug/datastructures/headers.py:257–262  ·  view source on GitHub ↗
(self, key: str | int | slice)

Source from the content-addressed store, hash-verified

255 self.add(key, value)
256
257 def __delitem__(self, key: str | int | slice) -> None:
258 if isinstance(key, str):
259 self._del_key(key)
260 return
261
262 del self._list[key]
263
264 def _del_key(self, key: str) -> None:
265 key = key.lower()

Callers

nothing calls this directly

Calls 1

_del_keyMethod · 0.95

Tested by

no test coverage detected