Skip to content

Commit 26fee6a

Browse files
committed
revert more matters of taste
1 parent a835649 commit 26fee6a

18 files changed

Lines changed: 18 additions & 18 deletions

guides/internals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ but is now just noise.
240240

241241
Because the shrinker runs in a big loop, if we've made progress the shrink pass
242242
will always be run again (assuming we don't hit some limit that terminates the
243-
shrink early, but by making the shrinker better we try to ensure that this
243+
shrink early, but by making the shrinker better we try to ensure that that
244244
never happens).
245245
This means that we will always get an opportunity to start again later if we
246246
made progress, and if we didn't make progress we've tried everything anyway.

hypothesis-python/docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16807,7 +16807,7 @@ This release could also be called 1.0-RC1.
1680716807

1680816808
It contains a teeny tiny bugfix, but the real point of this release is to declare
1680916809
feature freeze. There will be zero functionality changes between 0.9.0 and 1.0 unless
16810-
something goes seriously wrong. No new features will be added, no breaking API changes
16810+
something goes really really wrong. No new features will be added, no breaking API changes
1681116811
will occur, etc. This is the final shakedown before I declare Hypothesis stable and ready
1681216812
to use and throw a party to celebrate.
1681316813

hypothesis-python/src/_hypothesis_ftz_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def key(name: str) -> tuple[bool, int, str]:
147147

148148

149149
if __name__ == "__main__":
150-
# This would be extremely annoying to write automated tests for, so I've
150+
# This would be really really annoying to write automated tests for, so I've
151151
# done some manual exploratory testing: `pip install grequests gevent==21.12.0`,
152152
# and call print() as desired to observe behavior.
153153
import grequests # noqa

hypothesis-python/src/hypothesis/internal/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def on_access(self, key: K, value: V, score: Any) -> Any:
193193
return score
194194

195195
def on_evict(self, key: K, value: V, score: Any) -> Any:
196-
"""Called after a key has been evicted, with the score it had at
196+
"""Called after a key has been evicted, with the score it had had at
197197
the point of eviction."""
198198

199199
def check_valid(self) -> None:

hypothesis-python/src/hypothesis/internal/conjecture/choice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def choice_to_index(choice: ChoiceT, constraints: ChoiceConstraintsT) -> int:
395395
# Ordered by [False, True].
396396
p = constraints["p"]
397397
if not (2 ** (-64) < p < (1 - 2 ** (-64))):
398-
# only one option is possible, so whatever it is comes first.
398+
# only one option is possible, so whatever it is is first.
399399
return 0
400400
return int(choice)
401401
elif isinstance(choice, bytes):

hypothesis-python/src/hypothesis/internal/conjecture/junkdrawer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,5 +559,5 @@ def endswith(l1: Sequence[T], l2: Sequence[T]) -> bool:
559559
def bits_to_bytes(n: int) -> int:
560560
"""The number of bytes required to represent an n-bit number.
561561
Equivalent to (n + 7) // 8, but slightly faster. This really is
562-
called enough times that this matters."""
562+
called enough times that that matters."""
563563
return (n + 7) >> 3

hypothesis-python/src/hypothesis/internal/conjecture/shrinker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ def try_shrinking_nodes(self, nodes, n):
11441144
# case of this function of preserving from the right instead of
11451145
# preserving from the left. see test_can_shrink_variable_string_draws.
11461146

1147-
index, attempt_choice_type, attempt_constraints, _attempt_forced = (
1147+
(index, attempt_choice_type, attempt_constraints, _attempt_forced) = (
11481148
attempt.misaligned_at
11491149
)
11501150
node = self.nodes[index]

hypothesis-python/src/hypothesis/vendor/pretty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def _repr_integer(obj: int, p: RepresentationPrinter, cycle: bool) -> None:
919919
# add underscores for integers over ten decimal digits
920920
p.text(f"{obj:#_d}")
921921
else:
922-
# for extremely large integers, use hex because power-of-two bases are cheaper
922+
# for very very large integers, use hex because power-of-two bases are cheaper
923923
# https://docs.python.org/3/library/stdtypes.html#integer-string-conversion-length-limitation
924924
p.text(f"{obj:#_x}")
925925

hypothesis-python/tests/conjecture/test_order_shrinking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
def test_shrinks_down_to_sorted_the_slow_way(ls):
2020
# We normally would short-circuit and find that we can sort this
2121
# automatically, but here we test that a single run_step could put the
22-
# list in sorted order anyway if it had to, and that this is just an
22+
# list in sorted order anyway if it had to, and that that is just an
2323
# optimisation.
2424
shrinker = Ordering(ls, lambda ls: True, full=False)
2525
shrinker.run_step()

hypothesis-python/tests/cover/test_charmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_union_empty():
139139

140140
def test_union_handles_totally_overlapped_gap():
141141
# < xx > Imagine the intervals x and y as bit strings.
142-
# | <y1 y2> The bit at position n is set if n falls inside that interval.
142+
# | <yy yy> The bit at position n is set if n falls inside that interval.
143143
# = <zzzzz> In this model _union_intervals() performs bit-wise or.
144144
assert _union_intervals([[2, 3]], [[1, 2], [4, 5]]) == ((1, 5),)
145145

0 commit comments

Comments
 (0)