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

Method popitemlist

src/werkzeug/datastructures/structures.py:532–537  ·  view source on GitHub ↗

Pop a ``(key, list)`` tuple from the dict.

(self)

Source from the content-addressed store, hash-verified

530 return super().pop(key, []) # type: ignore[return-value]
531
532 def popitemlist(self) -> tuple[K, list[V]]:
533 """Pop a ``(key, list)`` tuple from the dict."""
534 try:
535 return super().popitem() # type: ignore[return-value]
536 except KeyError as e:
537 raise exceptions.BadRequestKeyError(e.args[0]) from None
538
539 def __copy__(self) -> te.Self:
540 return self.copy()

Callers 2

test_basic_interfaceMethod · 0.45

Calls 1

popitemMethod · 0.45

Tested by 2

test_basic_interfaceMethod · 0.36