PEP 589: Fix typos (#1238)
This commit is contained in:
parent
212172a3e3
commit
337a9ce0d0
|
@ -336,7 +336,7 @@ Alternative Syntax
|
|||
|
||||
This PEP also proposes an alternative syntax that can be backported to
|
||||
older Python versions such as 3.5 and 2.7 that don't support the
|
||||
variable definition syntax introduced in PEP 526 [#PEP-526]. It
|
||||
variable definition syntax introduced in PEP 526 [#PEP-526]_. It
|
||||
resembles the traditional syntax for defining named tuples::
|
||||
|
||||
Movie = TypedDict('Movie', {'name': str, 'year': int})
|
||||
|
@ -364,7 +364,7 @@ Type Consistency
|
|||
|
||||
Informally speaking, *type consistency* is a generalization of the
|
||||
is-subtype-of relation to support the ``Any`` type. It is defined
|
||||
more formally in PEP 483 [#PEP-483]_). This section introduces the
|
||||
more formally in PEP 483 [#PEP-483]_. This section introduces the
|
||||
new, non-trivial rules needed to support type consistency for
|
||||
TypedDict types.
|
||||
|
||||
|
|
Loading…
Reference in New Issue