Skip to content

Commit 92f2e33

Browse files
[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)
(cherry picked from commit 1163678) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent 6c8cbb3 commit 92f2e33

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Doc/whatsnew/3.12.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ See :mod:`sys.monitoring` for details.
332332
New Features Related to Type Hints
333333
==================================
334334

335-
This section covers major changes affecting :pep:`484` type hints and
335+
This section covers major changes affecting :pep:`type hints <484>` and
336336
the :mod:`typing` module.
337337

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

347-
This PEP specifies a more precise way of typing ``**kwargs`` by relying on
347+
:pep:`692` specifies a more precise way of typing ``**kwargs`` by relying on
348348
typed dictionaries::
349349

350350
from typing import TypedDict, Unpack
@@ -388,6 +388,8 @@ Example::
388388
def get_colour(self) -> str:
389389
return "red"
390390

391+
See :pep:`698` for more details.
392+
391393
(Contributed by Steven Troxler in :gh:`101561`.)
392394

393395
.. _whatsnew312-pep695:
@@ -433,8 +435,8 @@ parameters with bounds or constraints::
433435

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

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

0 commit comments

Comments
 (0)