summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-06-07 03:55:37 (GMT)
committerGitHub <noreply@github.com>2023-06-07 03:55:37 (GMT)
commitf4969eb315fbbb80c476afbcdeacd0695ac7fb9b (patch)
tree5f8aed30ce789a7835f2dd20ba80fe442ae3b614 /Doc
parent84133c56f334dca2a1d9fe640fdbafc584d44839 (diff)
downloadcpython-f4969eb315fbbb80c476afbcdeacd0695ac7fb9b.zip
cpython-f4969eb315fbbb80c476afbcdeacd0695ac7fb9b.tar.gz
cpython-f4969eb315fbbb80c476afbcdeacd0695ac7fb9b.tar.bz2
[3.12] `typing.NewType` docs: the future performance improvements are now in the past (GH-105354) (#105414)
`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>
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 a4bba7b..a0aee8a 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