Skip to content

Commit ee13797

Browse files
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.
1 parent 7d8725a commit ee13797

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)