MCPcopy
hub / github.com/encode/starlette / popitem

Method popitem

starlette/datastructures.py:334–337  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 return self._dict.pop(key, default)
333
334 def popitem(self) -> tuple[Any, Any]:
335 key, value = self._dict.popitem()
336 self._list = [(k, v) for k, v in self._list if k != key]
337 return key, value
338
339 def poplist(self, key: Any) -> list[Any]:
340 values = [v for k, v in self._list if k == key]

Callers 1

test_multidictFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_multidictFunction · 0.76