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

Method pop

starlette/datastructures.py:330–332  ·  view source on GitHub ↗
(self, key: Any, default: Any = None)

Source from the content-addressed store, hash-verified

328 del self._dict[key]
329
330 def pop(self, key: Any, default: Any = None) -> Any:
331 self._list = [(k, v) for k, v in self._list if k != key]
332 return self._dict.pop(key, default)
333
334 def popitem(self) -> tuple[Any, Any]:
335 key, value = self._dict.popitem()

Callers 13

remove_query_paramsMethod · 0.95
poplistMethod · 0.95
setlistMethod · 0.95
test_multidictFunction · 0.95
replace_paramsFunction · 0.45
matchesMethod · 0.45
url_path_forMethod · 0.45
replaceMethod · 0.45
rcvFunction · 0.45
homepageFunction · 0.45
dispatchMethod · 0.45
endpointFunction · 0.45

Calls

no outgoing calls

Tested by 6

test_multidictFunction · 0.76
rcvFunction · 0.36
homepageFunction · 0.36
dispatchMethod · 0.36
endpointFunction · 0.36
test_build_environFunction · 0.36