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

Class Sub

test/test_box.py:2042–2043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2040
2041def test_copy_preserves_subclass():
2042 class Sub(Box):
2043 pass
2044
2045 s = Sub({"a": {"b": 1}}, default_box=True)
2046 assert type(s.copy()) is Sub

Callers 2

Calls

no outgoing calls

Tested by 2