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

Class KeyStr

Lib/test/test_context.py:413–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411
412
413class KeyStr(str):
414 def __hash__(self):
415 if HashKey._crasher is not None and HashKey._crasher.error_on_hash:
416 raise HashingError
417 return super().__hash__()
418
419 def __eq__(self, other):
420 if HashKey._crasher is not None and HashKey._crasher.error_on_eq:
421 raise EqError
422 return super().__eq__(other)
423
424
425class HaskKeyCrasher:

Callers 1

test_hamt_stressMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_hamt_stressMethod · 0.68