Skip to content

Commit

Permalink
Clarify unpin value semantics in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jobh committed Jul 4, 2024
1 parent 5ab25ae commit 43c047d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypothesis-python/src/hypothesis/internal/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def pin(self, key, value):
self.__balance(i)

def unpin(self, key):
"""Undo one previous call to ``pin(key)``. Once all calls are
undone this key may be evicted as normal."""
"""Undo one previous call to ``pin(key)``. The value stays the same.
Once all calls are undone this key may be evicted as normal."""
i = self.keys_to_indices[key]
entry = self.data[i]
if entry.pins == 0:
Expand Down

0 comments on commit 43c047d

Please sign in to comment.