MCPcopy Create free account
hub / github.com/cdgriffith/Box / MyDict

Class MyDict

test/test_box.py:2220–2221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2218
2219def test_merge_lists_merge_intact_dict_type():
2220 class MyDict(dict):
2221 pass
2222
2223 bx = Box({"m": [MyDict(a=1)]}, box_intact_types=(MyDict,))
2224 bx.merge_update({"m": [{"b": 2}]}, box_merge_lists="merge")

Calls

no outgoing calls

Tested by 1