Skip to content

Commit 1f5c3b0

Browse files
AA-Turnermiss-islington
authored andcommitted
pythonGH-109190: Copyedit 3.12 What's New: Typing PEPs (pythonGH-109659)
(cherry picked from commit 1163678) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 4a0c118 commit 1f5c3b0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎Doc/whatsnew/3.12.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ See :mod:`sys.monitoring` for details.
334334
New Features Related to Type Hints
335335
==================================
336336

337-
This section covers major changes affecting :pep:`484` type hints and
337+
This section covers major changes affecting :pep:`type hints <484>` and
338338
the :mod:`typing` module.
339339

340340
.. _whatsnew312-pep692:
@@ -346,7 +346,7 @@ Typing ``**kwargs`` in a function signature as introduced by :pep:`484` allowed
346346
for valid annotations only in cases where all of the ``**kwargs`` were of the
347347
same type.
348348

349-
This PEP specifies a more precise way of typing ``**kwargs`` by relying on
349+
:pep:`692` specifies a more precise way of typing ``**kwargs`` by relying on
350350
typed dictionaries::
351351

352352
from typing import TypedDict, Unpack
@@ -390,6 +390,8 @@ Example::
390390
def get_colour(self) -> str:
391391
return "red"
392392

393+
See :pep:`698` for more details.
394+
393395
(Contributed by Steven Troxler in :gh:`101561`.)
394396

395397
.. _whatsnew312-pep695:
@@ -435,8 +437,8 @@ parameters with bounds or constraints::
435437

436438
The value of type aliases and the bound and constraints of type variables
437439
created through this syntax are evaluated only on demand (see
438-
:ref:`lazy-evaluation`). This means type aliases are able to refer to other
439-
types defined later in the file.
440+
:ref:`lazy evaluation <lazy-evaluation>`). This means type aliases are able to
441+
refer to other types defined later in the file.
440442

441443
Type parameters declared through a type parameter list are visible within the
442444
scope of the declaration and any nested scopes, but not in the outer scope. For

0 commit comments

Comments
 (0)