From ca1f14b1e73547a420bacaab7d43d5640d14524f Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Tue, 9 Feb 2021 09:58:50 +0800 Subject: [PATCH 1/2] [3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) --- Doc/library/typing.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 8c179ff79d15fa..046f5e0f2d9eb8 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, From 2f3a1ebd5616138d72dc41dead995b2476106ab8 Mon Sep 17 00:00:00 2001 From: Fidget-Spinner <28750310+Fidget-Spinner@users.noreply.github.com> Date: Wed, 10 Feb 2021 01:10:14 +0800 Subject: [PATCH 2/2] indent to 3 spaces --- Doc/library/typing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 046f5e0f2d9eb8..9d80a209060c87 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1020,7 +1020,7 @@ 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 + .. versionadded:: 3.7.4 .. function:: NewType(name, tp)