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

Class Sub

test/test_box.py:2107–2108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2105
2106def test_copy_preserves_subclass():
2107 class Sub(Box):
2108 pass
2109
2110 s = Sub({"a": {"b": 1}}, default_box=True)
2111 assert type(s.copy()) is Sub

Callers 2

Calls

no outgoing calls

Tested by 2