MCPcopy Index your code
hub / github.com/RustPython/RustPython / H

Class H

Lib/test/test_collections.py:926–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_HashableMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_HashableMethod · 0.56