Skip to content

Commit

Permalink
3.13 What's New: Add PEP 702 (pythonGH-118922)
Browse files Browse the repository at this point in the history
I honestly forgot this slipped into 3.13, but I think it's worth highlighting more, as it is a PEP-sized change that makes the type system significantly more powerful.

@Yhg1s I think it's also worth mentioning in your release announcements.
(cherry picked from commit ee13797)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
JelleZijlstra authored and miss-islington committed May 15, 2024
1 parent 8439d09 commit 4292b11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ New typing features:
* :pep:`696`: Type parameters (:data:`typing.TypeVar`, :data:`typing.ParamSpec`,
and :data:`typing.TypeVarTuple`) now support defaults.

* :pep:`702`: Support for marking deprecations in the type system using the
new :func:`warnings.deprecated` decorator.

* :pep:`742`: :data:`typing.TypeIs` was added, providing more intuitive
type narrowing behavior.

Expand Down

0 comments on commit 4292b11

Please sign in to comment.