Skip to content

Commit b61bb7d

Browse files
JDongianbrettcannon
authored andcommitted
fix minor typos (#294)
1 parent 3433417 commit b61bb7d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pep-0008.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ Avoid extraneous whitespace in the following situations:
466466
Yes: spam(ham[1], {eggs: 2})
467467
No: spam( ham[ 1 ], { eggs: 2 } )
468468

469-
- Between a trailing comma and a following close parentheses. ::
469+
- Between a trailing comma and a following close parenthesis. ::
470470

471471
Yes: foo = (0,)
472472
No: bar = (0, )

pep-0225.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Some analysis are as follows:
328328

329329
- The ``.op`` form is ambiguous: ``1.+a`` would be different from ``1 .+a``.
330330
- The bracket type operators are most favorable when standing alone, but
331-
not in formulas, as they interfere with visual parsing of parenthesis for
331+
not in formulas, as they interfere with visual parsing of parentheses for
332332
precedence and function argument. This is so for ``(op)`` and ``[op]``, and
333333
somewhat less so for ``{op}`` and ``<op>``.
334334

pep-0308.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Alternatives
174174

175175
<condition> then <expression1> else <expression2>
176176

177-
The advantages are simple visual parsing, no required parenthesis,
177+
The advantages are simple visual parsing, no required parentheses,
178178
no change in the semantics of existing keywords, not as likely
179179
as the proposal to be confused with statement syntax, and does
180180
not further overload the colon. The disadvantage is the

pep-0436.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ value in the generated C code. Few default values are permitted,
350350
owing to this manual translation step.
351351

352352
If this were a Python function declaration, a parameter declaration
353-
would be delimited by either a trailing comma or an ending parentheses.
353+
would be delimited by either a trailing comma or an ending parenthesis.
354354
However, Argument Clinic uses neither; parameter declarations are
355355
delimited by a newline. A trailing comma or right parenthesis is not
356356
permitted.

pep-0498.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ Lambdas inside expressions
649649
--------------------------
650650

651651
Because lambdas use the ``':'`` character, they cannot appear outside
652-
of parenthesis in an expression. The colon is interpreted as the start
652+
of parentheses in an expression. The colon is interpreted as the start
653653
of the format specifier, which means the start of the lambda
654654
expression is seen and is syntactically invalid. As there's no
655655
practical use for a plain lambda in an f-string expression, this is

0 commit comments

Comments
 (0)