]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
`typing.NewType` docs: the future performance improvements are now in the past (...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Wed, 7 Jun 2023 00:18:09 +0000 (01:18 +0100)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 00:18:09 +0000 (17:18 -0700)
Doc/library/typing.rst

index a9ea4b9fee3ad45681f38844d1fd8f10c9a9093c..73e96db02dc52f9b160c0c01a66d06cc2abd55f3 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