Skip to content

Commit 6a9d8be

Browse files
authored
PEP 810 - Fix typos (#4638)
1 parent 3768b70 commit 6a9d8be

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

peps/pep-0810.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ Alternate keyword names
14431443
-----------------------
14441444

14451445
For this PEP, we decided to propose ``lazy`` for the explicit keyword as it
1446-
felt the most familar to those already focused on optimizing import overhead.
1446+
felt the most familiar to those already focused on optimizing import overhead.
14471447
We also considered a variety of other options to support explicit lazy
14481448
imports. The most compelling alternates were ``defer`` and ``delay``.
14491449

@@ -1541,14 +1541,14 @@ imports), there was a suggestion to add a way to override the global disable
15411541
and force particular imports to be lazy, for instance by calling the lazy
15421542
imports filter even if lazy imports are globally disabled.
15431543

1544-
This approach could a complex hierarchy of the different "override" systems,
1545-
making it much harder to analyze and reason about the code. Additionally,
1546-
this may require additional complexity to introduce finer-grained systems to
1547-
enable or disable particular imports as the use of lazy imports evolves. The
1548-
global disable is not expected to see commonplace use, but be more of a
1549-
debugging and selective testing tool for those who want to tightly control
1544+
This approach could introduce a complex hierarchy of the different "override"
1545+
systems, making it much harder to analyze and reason about the code.
1546+
Additionally, this may require additional complexity to introduce finer-grained
1547+
systems to enable or disable particular imports as the use of lazy imports
1548+
evolves. The global disable is not expected to see commonplace use, but be more
1549+
of a debugging and selective testing tool for those who want to tightly control
15501550
their dependency on lazy imports. We think it's reasonable for package
1551-
mantainers, as they update packages to adopt lazy imports, to decide to
1551+
maintainers, as they update packages to adopt lazy imports, to decide to
15521552
*not* support running with lazy imports globally disabled.
15531553

15541554
It may be that this means that in time, as more and more packages embrace
@@ -1573,7 +1573,7 @@ has been proposed:
15731573
This would replace the need for :data:`!__lazy_modules__`, and allow
15741574
libraries to use one of the existing lazy imports implementations in older
15751575
Python versions. However, adding magic ``with`` statements with that kind of
1576-
effect would be a signficant change to Python and ``with`` statements in
1576+
effect would be a significant change to Python and ``with`` statements in
15771577
general, and it would not be easy to combine with the implementation for
15781578
lazy imports in this proposal. Adding standard library support for existing
15791579
lazy importers *without* changes to the implementation amounts to the status

0 commit comments

Comments
 (0)