Skip to content

Commit

Permalink
Fix typos (#1705)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Oct 13, 2023
1 parent f190c59 commit 66c6970
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/pages/contrib/hypothesis_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hypothesis entrypoint
We support a ``hypothesis`` entrypoint
that is executed on ``hypothesis`` import.

There we are regestering all our containers as strategies.
There we are registering all our containers as strategies.
So, you don't have to. Example:

.. code:: python
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/future.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sync code that executes asynchronously without any magic at all.
Aliases
-------

There are several useful alises for ``FutureResult`` type
There are several useful aliases for ``FutureResult`` type
with some common values:

- :attr:`returns.future.FutureResultE` is an alias
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ see the example below:
Aliases
-------

There are several useful alises for ``IOResult`` type with some common values:
There are several useful aliases for ``IOResult`` type with some common values:

- :attr:`returns.io.IOResultE` is an alias for ``IOResult[... Exception]``,
just use it when you want to work with ``IOResult`` containers
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/result.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ see the example below:
Aliases
-------

There are several useful alises for ``Result`` type with some common values:
There are several useful aliases for ``Result`` type with some common values:

- :attr:`returns.result.ResultE` is an alias for ``Result[... Exception]``,
just use it when you want to work with ``Result`` containers
Expand Down
33 changes: 6 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/test_iterables/test_fold/test_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async def test_fold_collect_future_result(subtests):


def test_fold_collect_recursion_limit():
"""Ensures that ``.collect`` method is recurion safe."""
"""Ensures that ``.collect`` method is recursion safe."""
limit = sys.getrecursionlimit() + 1
iterable = (IO(1) for _ in range(limit))
expected = IO((1,) * limit)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_iterables/test_fold/test_collect_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async def test_collect_all_future_result(subtests):


def test_fold_collect_recursion_limit():
"""Ensures that ``.collect_all`` method is recurion safe."""
"""Ensures that ``.collect_all`` method is recursion safe."""
limit = sys.getrecursionlimit() + 1
iterable = (Success(1) for _ in range(limit))
expected = Success((1,) * limit)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_iterables/test_fold/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def test_fold_collect_future_result(subtests):


def test_fold_loop_recursion_limit():
"""Ensures that ``.loop`` method is recurion safe."""
"""Ensures that ``.loop`` method is recursion safe."""
limit = sys.getrecursionlimit() + 1
iterable = (IO(1) for _ in range(limit))
assert Fold.loop(iterable, IO(0), _sum_two) == IO(limit)

0 comments on commit 66c6970

Please sign in to comment.