Skip to content

Commit 1a91789

Browse files
authored
PEP 751: Fix typos (#4344)
1 parent b394f88 commit 1a91789

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

peps/pep-0751.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ search for:
145145

146146
E.g. a cloud host service named "spam" would first look for
147147
``pylock.spam.toml`` to install from, and if that file didn't exist then install
148-
from ``pylock.toml`` and look for a dependency group named "spam" fo use if
148+
from ``pylock.toml`` and look for a dependency group named "spam" to use if
149149
present.
150150

151151
The lock file(s) SHOULD be located in the directory as appropriate for the scope
@@ -180,7 +180,7 @@ consistent order. Usage of inline tables SHOULD also be kept consistent.
180180
updates to the standard change it -- as ``"1.0"``.
181181
- If a tool supports the major version but not the minor version, a tool
182182
SHOULD warn when an unknown key is seen.
183-
- If an tool doesn't support a major version, it MUST raise an error.
183+
- If a tool doesn't support a major version, it MUST raise an error.
184184

185185

186186
``environments``
@@ -1026,7 +1026,7 @@ This PEP does NOT fully replace requirements files because:
10261026

10271027
- They support specifying installation
10281028
`options <https://pip.pypa.io/en/stable/reference/requirements-file-format/#supported-options>`__
1029-
at install-time (e.g. ``--index-url``, ``--constrants``).
1029+
at install-time (e.g. ``--index-url``, ``--constraint``).
10301030
- They can
10311031
`reference other requirements files <https://pip.pypa.io/en/stable/reference/requirements-file-format/#referring-to-other-requirements-files>`__
10321032
via ``-r``.
@@ -1314,8 +1314,8 @@ the key was technically superfluous.
13141314
The single drawback of not having this key is for wheels and sdists that now
13151315
fall under ``packages.archive``. With the separate key (or having it specified
13161316
as a part of ``packages.sdist`` or ``packages.wheels``), it would allow for
1317-
identifying in the lock file itself that an archive file is an sdist of wheel.
1318-
As it currently stand, an installer must infer that detail itself.
1317+
identifying in the lock file itself that an archive file is an sdist or wheel.
1318+
As it currently stands, an installer must infer that detail itself.
13191319

13201320

13211321
--------------
@@ -1369,7 +1369,7 @@ encodes the project name and version, so no new info is conveyed about the file
13691369
(when the package version is provided). And if the location is recorded then
13701370
getting the file is handled regardless of the file name.
13711371

1372-
But recording the file name can helpful when looking for an appropriate file
1372+
But recording the file name can be helpful when looking for an appropriate file
13731373
when the recorded file location is no longer available (while sdist file names
13741374
are now standardized thanks to :pep:`625`, that has only been true since 2020
13751375
and thus there are many older sdists with names that may not be guessable).

0 commit comments

Comments
 (0)