From: Jelle Zijlstra Date: Wed, 15 May 2024 02:39:12 +0000 (-0400) Subject: 3.13 What's New: Add PEP 702 (#118922) X-Git-Tag: v3.14.0a1~1903 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee13797dec988884f8792144fe5b3d7f5c8083c9;p=thirdparty%2FPython%2Fcpython.git 3.13 What's New: Add PEP 702 (#118922) 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. --- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index e69320e822ab..effa554bfe84 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -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.