Skip to content

Commit b9ca714

Browse files
arhadthedevAA-Turnerwookie184
authored
Lint: Fix outstanding codespell spelling errors (python#3129)
Co-authored-by: Adam Turner <[email protected]> Co-authored-by: wookie184 <[email protected]>
1 parent 982e193 commit b9ca714

24 files changed

+30
-28
lines changed

.codespell/ignore-words.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
adaptee
2+
ancilliary
23
ans
34
arithmetics
45
asend
@@ -15,5 +16,6 @@ nd
1516
ned
1617
recuse
1718
reenable
19+
referencable
1820
therefor
1921
warmup

pep-0011.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ platform to be considered supported by CPython as well as providing a
4242
procedure to remove code for platforms with few or no CPython
4343
users.
4444

45-
This PEP also lists what plaforms *are* supported by the CPython
45+
This PEP also lists what platforms *are* supported by the CPython
4646
interpreter. This lets people know what platforms are directly
4747
supported by the CPython development team.
4848

pep-0285.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ Resolved Issues
415415

416416
since the bool is implicit in the "if". Explicit is **not**
417417
better than implicit here, since the added verbiage impairs
418-
redability and there's no other interpretation possible. There
418+
readability and there's no other interpretation possible. There
419419
is, however, sometimes a reason to write
420420
::
421421

pep-0426.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ Support for metadata extensions
12841284

12851285
The new extension effectively allows sections of the metadata
12861286
namespace to be delegated to other projects, while preserving a
1287-
standard overal format metadata format for easy of processing by
1287+
standard overall format metadata format for easy of processing by
12881288
distribution tools that do not support a particular extension.
12891289

12901290
It also works well in combination with the new ``build`` extra

pep-0526.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ culprit, is accepted by the Python interpreter without questioning it
464464

465465
The recommended way of getting annotations at runtime is by using
466466
``typing.get_type_hints`` function; as with all dunder attributes,
467-
any undocummented use of ``__annotations__`` is subject to breakage
467+
any undocumented use of ``__annotations__`` is subject to breakage
468468
without warning::
469469

470470
from typing import Dict, ClassVar, get_type_hints

pep-0554.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ each with different goals. Most center on correctness and usability.
478478
One class of concurrency models focuses on isolated threads of
479479
execution that interoperate through some message passing scheme. A
480480
notable example is Communicating Sequential Processes [CSP]_ (upon
481-
which Go's concurrency is roughly based). The inteded isolation
481+
which Go's concurrency is roughly based). The intended isolation
482482
inherent to CPython's interpreters makes them well-suited
483483
to this approach.
484484

pep-0582.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ advanced concepts.
4646
Furthermore, standalone Python applications usually need 3rd party libraries to
4747
function. Typically, they are either designed to be run from a virtual environment,
4848
where the dependencies are installed into the environment alongside the application,
49-
or they bundle their depenencies in a subdirectory, and modify ``sys.path`` at
49+
or they bundle their dependencies in a subdirectory, and modify ``sys.path`` at
5050
application startup. Virtual environments, while a common and effective solution
5151
(used, for example, by the ``pipx`` tool), are somewhat awkward to set up and manage,
5252
and are not relocatable. On the other hand, manual manipulation of ``sys.path`` is

pep-0622.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ the fact that, because of the way names are bound, there are no real
21072107
constants in Python. It also meant that the ``__match__`` method would
21082108
have to re-implement much of the logic of matching which would otherwise
21092109
be implemented in C code in the Python VM. As a result, this option would
2110-
perform poorly compared to an equilvalent ``if``-statement.
2110+
perform poorly compared to an equivalent ``if``-statement.
21112111

21122112
The simpler protocol suffered from the fact that although it was more
21132113
performant, it was much less flexible, and did not allow for many of

pep-0642.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ pattern caching rule, where the number of times the constraint expression
16991699
actually gets evaluated will be implementation dependent. Even here, the PEP
17001700
takes the view of letting users write nonsense if they really want to.
17011701

1702-
Aside from the recenty updated decorator expressions, another situation where
1702+
Aside from the recently updated decorator expressions, another situation where
17031703
Python's formal syntax offers full freedom of expression that is almost never
17041704
used in practice is in ``except`` clauses: the exceptions to match against
17051705
almost always take the form of a simple name, a dotted name, or a tuple of

pep-0652.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ The initial Stable ABI manifest will include:
242242
Items that are no longer in CPython when this PEP is accepted will be removed
243243
from the list.
244244

245-
Additional items may be aded to the initial manifest according to
245+
Additional items may be added to the initial manifest according to
246246
the checklist below.
247247

248248

pep-0653.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ Can be compiled roughly as:
593593
Mapping patterns
594594
''''''''''''''''
595595

596-
The best stategy here is probably to form a decision tree based on the size of the mapping and which keys are present.
596+
The best strategy here is probably to form a decision tree based on the size of the mapping and which keys are present.
597597
There is no point repeatedly testing for the presence of a key.
598598
For example::
599599

pep-0665.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ reproducibility across multiple platforms. Examples of this are
5555
``package-lock.json`` from npm_, ``Poetry.lock`` from Poetry_, etc.
5656

5757
*Locking* is the act of taking the input of the packages an app
58-
depends on and producting a lock file from that.
58+
depends on and producing a lock file from that.
5959

6060
A *locker* is a tool which produces a lock file.
6161

pep-0669.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ they should be fairly inexpensive.
422422
Memory Consumption
423423
''''''''''''''''''
424424

425-
When not in use, this PEP will have a neglible change on memory consumption.
425+
When not in use, this PEP will have a negligible change on memory consumption.
426426

427427
How memory is used is very much an implementation detail.
428428
However, we expect that for 3.12 the additional memory consumption per

pep-0670.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ Debug build
521521

522522
Performance in debug builds *can* suffer when macros are converted to
523523
functions. This is compensated by better debuggability: debuggers can
524-
retreive function names, set breakpoints inside functions, etc.
524+
retrieve function names, set breakpoints inside functions, etc.
525525

526526
On Windows, when Python is built in debug mode by Visual Studio, static
527527
inline functions are not inlined.

pep-0674.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ The HPy project
401401

402402
The hope with the HPy project is to provide a C API that is close
403403
to the original API—to make porting easy—and have it perform as close to
404-
the existing API as possible. At the same time, HPy is sufficently
404+
the existing API as possible. At the same time, HPy is sufficiently
405405
removed to be a good "C extension API" (as opposed to a stable subset of
406406
the CPython implementation API) that does not leak implementation
407407
details. To ensure this latter property, the HPy project tries to

pep-0677.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ In order to allow both ``->`` and ``|`` tokens in type expressions we
10201020
had to choose precedence. In the current proposal, this is a function
10211021
returning an optional boolean::
10221022

1023-
(int, str) -> bool | None # equivalent ot (int, str) -> (bool | None)
1023+
(int, str) -> bool | None # equivalent to (int, str) -> (bool | None)
10241024

10251025
We considered having ``->`` bind tighter so that instead the expression
10261026
would parse as ``((int, str) -> bool) | None``. There are two advantages
@@ -1115,7 +1115,7 @@ that refers to type parameters rather than callable parameters.
11151115
Using the plain return type in ``__args__`` for async types
11161116
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11171117

1118-
It is debatable whether we are required to preserve backward compatiblity
1118+
It is debatable whether we are required to preserve backward compatibility
11191119
of ``__args__`` for async callable types like ``async (int) -> str``. The
11201120
reason is that one could argue they are not expressible directly
11211121
using ``typing.Callable``, and therefore it would be fine to set

pep-0683.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The PEP was accepted with conditions:
2424
(reset the immortal refcount in ``tp_dealloc()``)
2525
* types without this may not be immortalized (in CPython's code)
2626
* the PEP must be updated with final benchmark results once
27-
the implmentation is finalized
27+
the implementation is finalized
2828
* we will have one last round of discussion about those results at that point
2929

3030

@@ -703,7 +703,7 @@ specialize for immortal objects in the eval loop
703703
''''''''''''''''''''''''''''''''''''''''''''''''
704704

705705
There are opportunities to optimize operations in the eval loop
706-
involving speicific known immortal objects (e.g. ``None``). The
706+
involving specific known immortal objects (e.g. ``None``). The
707707
general mechanism is described in :pep:`659`. Also see `Pyston`_.
708708

709709
other possibilities

pep-0684.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ Reference Implementation
671671
Open Issues
672672
===========
673673

674-
* Are we okay to require "mem" and "object" allcoators to be thread-safe?
674+
* Are we okay to require "mem" and "object" allocators to be thread-safe?
675675
* How would a per-interpreter tracemalloc module relate to global allocators?
676676
* Would the faulthandler module be limited to the main interpreter
677677
(like the signal module) or would we leak that global state between

pep-0689.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The Python C-API is currently divided into `three stability tiers <https://devgu
3939
<387>`, and requires deprecation warnings before changes
4040
- Internal (private) API, which can change at any time.
4141

42-
Tools requring access to CPython internals (e.g. advanced
42+
Tools requiring access to CPython internals (e.g. advanced
4343
debuggers and JIT compilers) are often built for minor series releases
4444
of CPython, and assume that the C-API internals used do not change
4545
in patch releases. To support these tools, we need a tier between the
@@ -130,7 +130,7 @@ Several rules for dealing with the unstable tier will be introduced:
130130
this name.
131131

132132
In the following cases, an incompatible change (and thus removing the
133-
deprecated name) is allowed without an SC exeption, as if the function was
133+
deprecated name) is allowed without an SC exception, as if the function was
134134
already part of the Unstable tier:
135135

136136
- Any API introduced before Python 3.12 that is *documented* to be less

pep-0690.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ necessary metadata to execute the import later.
293293
A new boolean flag in ``PyDictKeysObject`` (``dk_lazy_imports``) is set to
294294
signal that this particular dictionary may contain lazy import objects. This
295295
flag is only used to efficiently resolve all lazy objects in "bulk" operations,
296-
when a dictionay may contain lazy objects.
296+
when a dictionary may contain lazy objects.
297297

298298
Anytime a key is looked up in a dictionary to extract its value, the
299299
value is checked to see if it is a lazy import object. If so, the lazy object

pep-0691.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Goals
8484
increase the amount of HTTP requests an installer must do in order to function.
8585
Ideally it will require 0 additional requests, but if needed it may require one
8686
or two additional requests (total, not per dependency).
87-
- **Minimal additional unique reponses.** Due to the nature of how large
87+
- **Minimal additional unique responses.** Due to the nature of how large
8888
repositories like PyPI cache responses, this PEP should not introduce a
8989
significantly or combinatorially large number of additional unique responses
9090
that the repository may produce.

pep-0701.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ tokens:
376376
is encountered, emit a token for the closing bracket and go to step 2.
377377

378378
3. Push a new tokenizer mode to the tokenizer mode stack for "Regular Python
379-
tokenization withing f-string" and proceed to tokenize with it. This mode
379+
tokenization within f-string" and proceed to tokenize with it. This mode
380380
tokenizes as the "Regular Python tokenization" until a ``!``, ``:``, ``=``
381381
character is encountered or if a ``}`` character is encountered with the same
382382
level of nesting as the opening bracket token that was pushed when we enter the
@@ -436,7 +436,7 @@ as these should be taken into consideration when accepting or rejecting this PEP
436436

437437
Some of these objections include:
438438

439-
* Many people find quote reuse withing the same string confusing and hard to read. This is because
439+
* Many people find quote reuse within the same string confusing and hard to read. This is because
440440
allowing quote reuse will violate a current property of Python as it stands today: the fact that
441441
strings are fully delimited by two consecutive pairs of the same kind of quote, which by itself is a very simple rule.
442442
One of the reasons quote reuse may be harder for humans to parse, leading to less readable

pep-0706.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ How to Teach This
538538

539539
The API, usage notes and tips for further verification will be added to
540540
the documentation.
541-
These should be usable for users who are familiar wth archives in general, but
541+
These should be usable for users who are familiar with archives in general, but
542542
not with the specifics of UNIX filesystems nor the related security issues.
543543

544544

@@ -569,7 +569,7 @@ Add absolute_path option to tarfile
569569

570570
Issue `gh-73974`_ asks for adding an ``absolute_path`` option to extraction
571571
methods. This would be a minimal change to formally resolve `CVE-2007-4559`_.
572-
It doesn't go far enough to protect the unaware, nor to empower the dilligent
572+
It doesn't go far enough to protect the unaware, nor to empower the diligent
573573
and curious.
574574

575575
Other names for the ``'tar'`` filter

pep-0708.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ rely on them are forced to set up multiple repositories and have their users
123123
manually configure them to get the correct binaries for their platform, GPU,
124124
CPU, etc.
125125

126-
This use case is similiar to the first, but the important difference that makes
126+
This use case is similar to the first, but the important difference that makes
127127
it a distinct use case on it's own is who is providing the information and what
128128
their level of trust is.
129129

0 commit comments

Comments
 (0)