Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ A
Class
A
Lib/test/test_dataclasses/__init__.py:592–593 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
590
with
self.assertRaisesRegex(ValueError, unhashable_re):
591
@dataclass
592
class
A:
593
a: dict = {}
594
595
with
self.assertRaisesRegex(ValueError, unhashable_re):
596
@dataclass
Callers
15
test_is_dataclass_when_getattr_always_returns
Method · 0.70
test_is_dataclass_genericalias
Method · 0.70
test_dataclasses_qualnames
Method · 0.70
test_slots_with_default_no_init
Method · 0.70
test_slots_with_default_factory_no_init
Method · 0.70
test_slots_no_weakref
Method · 0.70
test_slots_weakref
Method · 0.70
test_slots_weakref_base_str
Method · 0.70
test_slots_weakref_base_tuple
Method · 0.70
test_weakref_slot_make_dataclass
Method · 0.70
test_weakref_slot_subclass_weakref_slot
Method · 0.70
test_weakref_slot_subclass_no_weakref_slot
Method · 0.70
Calls
1
Unhashable
Class · 0.70
Tested by
15
test_is_dataclass_when_getattr_always_returns
Method · 0.56
test_is_dataclass_genericalias
Method · 0.56
test_dataclasses_qualnames
Method · 0.56
test_slots_with_default_no_init
Method · 0.56
test_slots_with_default_factory_no_init
Method · 0.56
test_slots_no_weakref
Method · 0.56
test_slots_weakref
Method · 0.56
test_slots_weakref_base_str
Method · 0.56
test_slots_weakref_base_tuple
Method · 0.56
test_weakref_slot_make_dataclass
Method · 0.56
test_weakref_slot_subclass_weakref_slot
Method · 0.56
test_weakref_slot_subclass_no_weakref_slot
Method · 0.56