]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
3.13 What's New: Add PEP 702 (#118922)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 15 May 2024 02:39:12 +0000 (22:39 -0400)
committerGitHub <noreply@github.com>
Wed, 15 May 2024 02:39:12 +0000 (22:39 -0400)
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.

Doc/whatsnew/3.13.rst

index e69320e822ab3bf97f99faae68d608a149c656b5..effa554bfe8469ef9001b6b96784a4998c428ed7 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.