Skip to content

Commit fc7d767

Browse files
committed
Fix duplicate word typos in comments and documentation
Combined fixes for: - database.py: "the the" -> "the" - shrinker.py: "to to" -> "to" - changelog.rst: Multiple instances of duplicate "the" and "a"
1 parent a2c1b52 commit fc7d767

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

hypothesis-python/RELEASE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RELEASE_TYPE: patch
2+
3+
This patch fixes several duplicate word typos in comments and documentation.

hypothesis-python/docs/changelog.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6264,7 +6264,7 @@ affecting the :pypi:`returns` package (:issue:`3060`).
62646264
6.14.8 - 2021-08-16
62656265
-------------------
62666266

6267-
This patch ensures that registering a strategy for a subclass of a a parametrised
6267+
This patch ensures that registering a strategy for a subclass of a parametrised
62686268
generic type such as ``class Lines(Sequence[str]):`` will not "leak" into unrelated
62696269
strategies such as ``st.from_type(Sequence[int])`` (:issue:`2951`).
62706270
Unfortunately this fix requires :pep:`560`, meaning Python 3.7 or later.
@@ -8806,7 +8806,7 @@ with :func:`~hypothesis.strategies.from_type`:
88068806
- :class:`python:typing.SupportsRound`
88078807

88088808
Note that using :func:`~hypothesis.strategies.from_type` with one of the above strategies will not
8809-
ensure that the the specified function will execute successfully (ie : the strategy returned for
8809+
ensure that the specified function will execute successfully (ie : the strategy returned for
88108810
``from_type(typing.SupportsAbs)`` may include NaNs or things which cause the :func:`python:abs`
88118811
function to error. )
88128812

@@ -12837,7 +12837,7 @@ not recommended for direct use by other users of Hypothesis.
1283712837
-------------------
1283812838

1283912839
This release adds a new mechanism to infer strategies for classes
12840-
defined using :pypi:`attrs`, based on the the type, converter, or
12840+
defined using :pypi:`attrs`, based on the type, converter, or
1284112841
validator of each attribute. This inference is now built in to
1284212842
:func:`~hypothesis.strategies.builds` and :func:`~hypothesis.strategies.from_type`.
1284312843

@@ -16186,7 +16186,7 @@ Bug fixes:
1618616186
1.11.0 - 2015-08-31
1618716187
-------------------
1618816188

16189-
* text() with a non-string alphabet would have used the repr() of the the alphabet
16189+
* text() with a non-string alphabet would have used the repr() of the alphabet
1619016190
instead of its contexts. This is obviously silly. It now works with any sequence
1619116191
of things convertible to unicode strings.
1619216192
* @given will now work on methods whose definitions contains no explicit positional

hypothesis-python/src/hypothesis/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ def fetch(self, key: bytes) -> Iterable[bytes]:
11051105
kp = self._key_path(key)
11061106

11071107
with ZipFile(self._artifact) as zf:
1108-
# Get the all files in the the kp from the cache
1108+
# Get all the files in the kp from the cache
11091109
filenames = self._access_cache.get(kp, ())
11101110
for filename in filenames:
11111111
with zf.open(filename.as_posix()) as f:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ def _node_program(self, chooser, program):
12911291

12921292
# Because we run in a random order we will often find ourselves in the middle
12931293
# of a region where we could run the node program. We thus start by moving
1294-
# left to the beginning of that region if possible in order to to start from
1294+
# left to the beginning of that region if possible in order to start from
12951295
# the beginning of that region.
12961296
def offset_left(k):
12971297
return i - k * n

0 commit comments

Comments
 (0)