Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ C
Class
C
Lib/test/test_dataclasses/__init__.py:2706–2707 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2704
# Test a class with recursive child
2705
@dataclass
2706
class
C:
2707
recursive: object = ...
2708
c = C()
2709
c.recursive = c
2710
self.assertEqual(c, c)
Callers
15
test_no_fields
Method · 0.70
test_no_fields_but_member_variable
Method · 0.70
test_one_field_no_default
Method · 0.70
test_named_init_params
Method · 0.70
test_two_fields_one_default
Method · 0.70
test_overwrite_hash
Method · 0.70
test_field_named_self
Method · 0.70
test_field_named_object
Method · 0.70
test_field_named_object_frozen
Method · 0.70
test_field_named_BUILTINS_frozen
Method · 0.70
test_field_named_like_builtin
Method · 0.70
test_field_named_like_builtin_frozen
Method · 0.70
Calls
no outgoing calls
Tested by
15
test_no_fields
Method · 0.56
test_no_fields_but_member_variable
Method · 0.56
test_one_field_no_default
Method · 0.56
test_named_init_params
Method · 0.56
test_two_fields_one_default
Method · 0.56
test_overwrite_hash
Method · 0.56
test_field_named_self
Method · 0.56
test_field_named_object
Method · 0.56
test_field_named_object_frozen
Method · 0.56
test_field_named_BUILTINS_frozen
Method · 0.56
test_field_named_like_builtin
Method · 0.56
test_field_named_like_builtin_frozen
Method · 0.56