Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
464
class
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
474
class
TestAddHash:
Callers
2
test_copy_hash_cleared
Method · 0.85
test_cache_hash_serialization_hash_cleared
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_copy_hash_cleared
Method · 0.68
test_cache_hash_serialization_hash_cleared
Method · 0.68