Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/tvm-ffi
/ Child
Class
Child
tests/python/test_dataclass_py_class.py:703–704 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
701
702
@py_class(_unique_key(
"Child"
))
703
class
Child(Parent):
704
y: str
705
706
obj = Child(x=1, y=
"hello"
)
707
assert obj.x == 1
Callers
12
test_child_adds_fields
Method · 0.70
test_multiple_non_py_class_parents_single_ffi_lineage
Method · 0.70
test_non_py_class_parent_override_preserves_field_position
Method · 0.70
test_child_fields_after_parent
Method · 0.70
test_mutation_no_aliasing
Method · 0.70
test_preserves_parent_fields
Method · 0.70
test_mutation_no_aliasing
Method · 0.70
test_parent_method_uses_parent_state
Method · 0.70
test_copy_preserves_all_fields
Method · 0.70
test_deepcopy_preserves_all_fields
Method · 0.70
test_super_init_isinstance
Method · 0.70
test_super_init_field_overwrite
Method · 0.70
Calls
no outgoing calls
Tested by
12
test_child_adds_fields
Method · 0.56
test_multiple_non_py_class_parents_single_ffi_lineage
Method · 0.56
test_non_py_class_parent_override_preserves_field_position
Method · 0.56
test_child_fields_after_parent
Method · 0.56
test_mutation_no_aliasing
Method · 0.56
test_preserves_parent_fields
Method · 0.56
test_mutation_no_aliasing
Method · 0.56
test_parent_method_uses_parent_state
Method · 0.56
test_copy_preserves_all_fields
Method · 0.56
test_deepcopy_preserves_all_fields
Method · 0.56
test_super_init_isinstance
Method · 0.56
test_super_init_field_overwrite
Method · 0.56