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

Method lists

src/werkzeug/datastructures/structures.py:926–931  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

924 yield value
925
926 def lists(self) -> cabc.Iterable[tuple[K, list[V]]]:
927 rv: dict[K, list[V]] = {}
928 for d in self.dicts:
929 for key, values in d.lists():
930 rv.setdefault(key, []).extend(values)
931 return rv.items()
932
933 def listvalues(self) -> cabc.Iterable[list[V]]:
934 return (x[1] for x in self.lists())

Callers 2

listvaluesMethod · 0.95
test_iterablesMethod · 0.95

Calls 4

listsMethod · 0.45
extendMethod · 0.45
setdefaultMethod · 0.45
itemsMethod · 0.45

Tested by 1

test_iterablesMethod · 0.76