MCPcopy
hub / github.com/python-attrs/attrs / IncrementingHasher

Class IncrementingHasher

tests/test_dunders.py:464–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464class IncrementingHasher:
465 def __init__(self):
466 self.hash_value = 100
467
468 def __hash__(self):
469 rv = self.hash_value
470 self.hash_value += 1
471 return rv
472
473
474class TestAddHash:

Calls

no outgoing calls