Skip to content
Merged
Changes from all 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
10 changes: 7 additions & 3 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,13 @@ See :pep:`484` for more details.
.. versionadded:: 3.5.2

.. versionchanged:: 3.10
``NewType`` is now a class rather than a function. There is some additional
runtime cost when calling ``NewType`` over a regular function. However, this
cost will be reduced in 3.11.0.
``NewType`` is now a class rather than a function. As a result, there is
some additional runtime cost when calling ``NewType`` over a regular
function.

.. versionchanged:: 3.11
The performance of calling ``NewType`` has been restored to its level in
Python 3.9.


Callable
Expand Down