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

Method to_dict

src/werkzeug/datastructures/structures.py:401–401  ·  view source on GitHub ↗
(self, flat: t.Literal[True] = ...)

Source from the content-addressed store, hash-verified

399
400 @t.overload
401 def to_dict(self, flat: t.Literal[True] = ...) -> dict[K, V]: ...
402 @t.overload
403 def to_dict(self, flat: t.Literal[False]) -> dict[K, list[V]]: ...
404 def to_dict(self, flat: bool = True) -> dict[K, V] | dict[K, list[V]]:

Callers 10

deepcopyMethod · 0.95
test_wrapper_internalsFunction · 0.80
test_parse_cookieMethod · 0.80
test_bad_cookiesMethod · 0.80
test_storage_classesFunction · 0.80
test_basic_interfaceMethod · 0.80
test_basic_interfaceMethod · 0.80
appFunction · 0.80

Calls 2

itemsMethod · 0.95
listsMethod · 0.95

Tested by 8

test_wrapper_internalsFunction · 0.64
test_parse_cookieMethod · 0.64
test_bad_cookiesMethod · 0.64
test_storage_classesFunction · 0.64
test_basic_interfaceMethod · 0.64
test_basic_interfaceMethod · 0.64