Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1780,9 +1780,8 @@ These are not used in annotations. They are building blocks for declaring types.

Point2D = TypedDict('Point2D', x=int, y=int, label=str)
Comment thread
tomasr8 marked this conversation as resolved.
Outdated

.. deprecated-removed:: 3.11 3.13
The keyword-argument syntax is deprecated in 3.11 and will be removed
in 3.13. It may also be unsupported by static type checkers.
.. versionchanged:: 3.13
Removed support for the keyword-argument method of creating ``TypedDict``.
Comment thread
tomasr8 marked this conversation as resolved.
Outdated

The functional syntax should also be used when any of the keys are not valid
:ref:`identifiers <identifiers>`, for example because they are keywords or contain hyphens.
Expand Down
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ Removed
The :mod:`mimetypes` module provides an alternative.
(Contributed by Victor Stinner in :gh:`104773`.)

* Remove support for the keyword-argument method of creating
:class:`typing.TypedDict`, deprecated in Python 3.11.
Comment thread
tomasr8 marked this conversation as resolved.
Outdated
(Contributed by Tomas Roun in :gh:`104786`.)

Porting to Python 3.13
======================
Expand Down