summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-06-07 00:18:09 (GMT)
committerGitHub <noreply@github.com>2023-06-07 00:18:09 (GMT)
commit5f65ff0370e1123084ff300a5ff02cd57623b575 (patch)
treea37ae91a56e0b6b3f4469edb731c4efb38f70aaa /Doc
parent24af45172f74e4f01eb21d3aee7beab62417b833 (diff)
downloadcpython-5f65ff0370e1123084ff300a5ff02cd57623b575.zip
cpython-5f65ff0370e1123084ff300a5ff02cd57623b575.tar.gz
cpython-5f65ff0370e1123084ff300a5ff02cd57623b575.tar.bz2
`typing.NewType` docs: the future performance improvements are now in the past (#105354)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/typing.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index a9ea4b9..73e96db 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -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