Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2041
def
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
test_copy_preserves_subclass
Function · 0.70
test_subclass_keeps_type
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_copy_preserves_subclass
Function · 0.56
test_subclass_keeps_type
Method · 0.56