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

Class H

Lib/test/test_collections.py:927–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925 self.assertRaises(TypeError, Hashable)
926 # Check direct subclassing
927 class H(Hashable):
928 def __hash__(self):
929 return super().__hash__()
930 self.assertEqual(hash(H()), 0)
931 self.assertNotIsSubclass(int, H)
932 self.validate_abstract_methods(Hashable, '__hash__')

Callers 1

test_HashableMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_HashableMethod · 0.56