Skip to content

Commit dd8a61f

Browse files
[3.13] 3.13 What's New: Add PEP 702 (GH-118922) (#119062)
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>
1 parent 8439d09 commit dd8a61f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ New typing features:
104104
* :pep:`696`: Type parameters (:data:`typing.TypeVar`, :data:`typing.ParamSpec`,
105105
and :data:`typing.TypeVarTuple`) now support defaults.
106106

107+
* :pep:`702`: Support for marking deprecations in the type system using the
108+
new :func:`warnings.deprecated` decorator.
109+
107110
* :pep:`742`: :data:`typing.TypeIs` was added, providing more intuitive
108111
type narrowing behavior.
109112

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy