Skip to content

Commit 5f65ff0

Browse files
authored
typing.NewType docs: the future performance improvements are now in the past (#105354)
1 parent 24af451 commit 5f65ff0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Doc/library/typing.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,13 @@ See :pep:`484` for more details.
236236
.. versionadded:: 3.5.2
237237

238238
.. versionchanged:: 3.10
239-
``NewType`` is now a class rather than a function. There is some additional
240-
runtime cost when calling ``NewType`` over a regular function. However, this
241-
cost will be reduced in 3.11.0.
239+
``NewType`` is now a class rather than a function. As a result, there is
240+
some additional runtime cost when calling ``NewType`` over a regular
241+
function.
242+
243+
.. versionchanged:: 3.11
244+
The performance of calling ``NewType`` has been restored to its level in
245+
Python 3.9.
242246

243247

244248
Callable

0 commit comments

Comments
 (0)