Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ D
Class
D
Lib/test/test_dataclasses/__init__.py:94–95 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
92
93
@dataclass
94
class
D:
95
C: C = field()
96
97
self.assertIn(
",type=...,"
, repr(D.__dataclass_fields__[
"C"
]))
98
Callers
15
test_missing_default
Method · 0.70
test_missing_default_factory
Method · 0.70
test_intermediate_non_dataclass
Method · 0.70
test_is_dataclass
Method · 0.70
test_inherit_from_protocol
Method · 0.70
test_repr
Method · 0.70
test_inherit
Method · 0.70
test_inherit_nonfrozen_from_empty
Method · 0.70
test_inherit_from_normal_class
Method · 0.70
test_dataclass_derived_generic_from_base
Method · 0.70
C
Class · 0.70
test_lookup_on_instance
Method · 0.70
Calls
1
field
Function · 0.85
Tested by
14
test_missing_default
Method · 0.56
test_missing_default_factory
Method · 0.56
test_intermediate_non_dataclass
Method · 0.56
test_is_dataclass
Method · 0.56
test_inherit_from_protocol
Method · 0.56
test_repr
Method · 0.56
test_inherit
Method · 0.56
test_inherit_nonfrozen_from_empty
Method · 0.56
test_inherit_from_normal_class
Method · 0.56
test_dataclass_derived_generic_from_base
Method · 0.56
test_lookup_on_instance
Method · 0.56
test_setting_uninitialized_descriptor_field
Method · 0.56