MCPcopy Index your code
hub / github.com/python/cpython / Unhashable

Class Unhashable

Lib/test/test_dataclasses/__init__.py:586–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584 def test_no_unhashable_default(self):
585 # See bpo-44674.
586 class Unhashable:
587 __hash__ = None
588
589 unhashable_re = 'mutable default .* for field a is not allowed'
590 with self.assertRaisesRegex(ValueError, unhashable_re):

Callers 2

AClass · 0.70

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…