Skip to content

Commit

Permalink
Fix typos (#10001)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored Jun 3, 2021
1 parent 3c1d181 commit b8e7a70
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Features
- When installing a git URL that refers to a commit that is not available locally
after git clone, attempt to fetch it from the remote. (`#8815 <https://github.com/pypa/pip/issues/8815>`_)
- Include http subdirectory in ``pip cache info`` and ``pip cache purge`` commands. (`#8892 <https://github.com/pypa/pip/issues/8892>`_)
- Cache package listings on index packages so they are guarenteed to stay stable
- Cache package listings on index packages so they are guaranteed to stay stable
during a pip command session. This also improves performance when a index page
is accessed multiple times during the command session. (`#8905 <https://github.com/pypa/pip/issues/8905>`_)
- New resolver: Tweak resolution logic to improve user experience when
Expand Down Expand Up @@ -422,7 +422,7 @@ Features
and considered good enough. (`#8023 <https://github.com/pypa/pip/issues/8023>`_)
- Improve error message friendliness when an environment has packages with
corrupted metadata. (`#8676 <https://github.com/pypa/pip/issues/8676>`_)
- Cache package listings on index packages so they are guarenteed to stay stable
- Cache package listings on index packages so they are guaranteed to stay stable
during a pip command session. This also improves performance when a index page
is accessed multiple times during the command session. (`#8905 <https://github.com/pypa/pip/issues/8905>`_)
- New resolver: Tweak resolution logic to improve user experience when
Expand Down
2 changes: 1 addition & 1 deletion docs/html/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ those specified on the command-line or via a requirements file) while
requirements).

As an example, say ``SomePackage`` has a dependency, ``SomeDependency``, and
both of them are already installed but are not the latest avaialable versions:
both of them are already installed but are not the latest available versions:

- ``pip install SomePackage``: will not upgrade the existing ``SomePackage`` or
``SomeDependency``.
Expand Down
1 change: 1 addition & 0 deletions news/0d757310-0e1d-4887-9076-a1eb3c55d9fa.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix typos in several files.
2 changes: 1 addition & 1 deletion src/pip/_internal/models/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def support_index_min(self, tags):
def find_most_preferred_tag(self, tags, tag_to_priority):
# type: (List[Tag], Dict[Tag, int]) -> int
"""Return the priority of the most preferred tag that one of the wheel's file
tag combinations acheives in the given list of supported tags using the given
tag combinations achieves in the given list of supported tags using the given
tag_to_priority mapping, where lower priorities are more-preferred.
This is used in place of support_index_min in some cases in order to avoid
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/network/lazy_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def seek(self, offset, whence=0):

def tell(self):
# type: () -> int
"""Return the current possition."""
"""Return the current position."""
return self._file.tell()

def truncate(self, size=None):
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def adjacent_tmp_file(path, **kwargs):
os.fsync(result.fileno())


# Tenacity raises RetryError by default, explictly raise the original exception
# Tenacity raises RetryError by default, explicitly raise the original exception
_replace_retry = retry(reraise=True, stop=stop_after_delay(1), wait=wait_fixed(0.25))

replace = _replace_retry(os.replace)
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def get_prog():


# Retry every half second for up to 3 seconds
# Tenacity raises RetryError by default, explictly raise the original exception
# Tenacity raises RetryError by default, explicitly raise the original exception
@retry(reraise=True, stop=stop_after_delay(3), wait=wait_fixed(0.5))
def rmtree(dir, ignore_errors=False):
# type: (AnyStr, bool) -> None
Expand Down
2 changes: 1 addition & 1 deletion src/pip/py.typed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip is a command line program. While it is implemented in Python, and so is
available for import, you must not use pip's internal APIs in this way. Typing
information is provided as a convenience only and is not a gaurantee. Expect
information is provided as a convenience only and is not a guarantee. Expect
unannounced changes to the API and types in releases.

0 comments on commit b8e7a70

Please sign in to comment.