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

Method lists

src/werkzeug/datastructures/structures.py:367–373  ·  view source on GitHub ↗

Return a iterator of ``(key, values)`` pairs, where values is the list of all values associated with the key.

(self)

Source from the content-addressed store, hash-verified

365 yield key, values[0]
366
367 def lists(self) -> cabc.Iterable[tuple[K, list[V]]]:
368 """Return a iterator of ``(key, values)`` pairs, where values is the list
369 of all values associated with the key."""
370 values: list[V]
371
372 for key, values in super().items(): # type: ignore[assignment]
373 yield key, list(values)
374
375 def values(self) -> cabc.Iterable[V]: # type: ignore[override]
376 """Returns an iterator of the first value on every key's value list."""

Callers 7

__getstate__Method · 0.95
to_dictMethod · 0.95
__init__Method · 0.45
listsMethod · 0.45
test_basic_interfaceMethod · 0.45
test_iter_interfacesMethod · 0.45
test_basic_interfaceMethod · 0.45

Calls 2

listFunction · 0.50
itemsMethod · 0.45

Tested by 3

test_basic_interfaceMethod · 0.36
test_iter_interfacesMethod · 0.36
test_basic_interfaceMethod · 0.36