Skip to content

Commit 1163678

Browse files
authored
GH-109190: Copyedit 3.12 What's New: Typing PEPs (#109659)
1 parent 22b70ca commit 1163678

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
@@ -331,7 +331,7 @@ See :mod:`sys.monitoring` for details.
331331
New Features Related to Type Hints
332332
==================================
333333

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

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

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

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

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

392394
.. _whatsnew312-pep695:
@@ -432,8 +434,8 @@ parameters with bounds or constraints::
432434

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

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

0 commit comments

Comments
 (0)