]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] 3.13 What's New: Add PEP 702 (GH-118922) (#119062)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 May 2024 02:56:37 +0000 (04:56 +0200)
committerGitHub <noreply@github.com>
Wed, 15 May 2024 02:56:37 +0000 (02:56 +0000)
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 ee13797dec988884f8792144fe5b3d7f5c8083c9)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Doc/whatsnew/3.13.rst

index d2812995edfa342d3864c58f218467c28593df87..bc61d09f73426f2f59bd1abfdc91612702aeea7f 100644 (file)
@@ -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.