From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 9 Feb 2021 16:55:45 +0000 (+0800) Subject: [3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494) X-Git-Tag: v3.8.8rc1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8a48c6d0417cc8f256a40142962825febdc2e20;p=thirdparty%2FPython%2Fcpython.git [3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494) --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8c179ff79d15..046f5e0f2d9e 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1020,6 +1020,8 @@ The module defines the following classes, functions and decorators: ``List[ForwardRef("SomeClass")]``. This class should not be instantiated by a user, but may be used by introspection tools. + .. versionadded:: 3.7.4 + .. function:: NewType(name, tp) A helper function to indicate a distinct type to a typechecker,