]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] `typing.NewType` docs: the future performance improvements are now in the...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 7 Jun 2023 03:55:37 +0000 (20:55 -0700)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 03:55:37 +0000 (20:55 -0700)
`typing.NewType` docs: the future performance improvements are now in the past (GH-105354)
(cherry picked from commit 5f65ff0370e1123084ff300a5ff02cd57623b575)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/typing.rst

index a4bba7b5ad630b03baacef229f831cc1fdcebf19..a0aee8a601563ec71bb79bc42d430df3f0fa421e 100644 (file)
@@ -236,9 +236,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