We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
typing.NewType
1 parent 24af451 commit 5f65ff0Copy full SHA for 5f65ff0
Doc/library/typing.rst
@@ -236,9 +236,13 @@ See :pep:`484` for more details.
236
.. versionadded:: 3.5.2
237
238
.. 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.
+ ``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.
242
+
243
+.. versionchanged:: 3.11
244
+ The performance of calling ``NewType`` has been restored to its level in
245
+ Python 3.9.
246
247
248
Callable
0 commit comments