From abac0a251c77ca5ab545db10245325c413ebd2d9 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 16 Jan 2021 00:27:16 +0800 Subject: [PATCH 1/2] Add versionadded for typing.ForwardRef --- Doc/library/typing.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index 3b4dba3e0e0a9d..b54c474870e84e 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1949,6 +1949,8 @@ Introspection helpers For example, ``list["SomeClass"]`` is implicitly transformed into ``list[ForwardRef("SomeClass")]``. This class should not be instantiated by a user, but may be used by introspection tools. + + .. versionadded:: 3.7.4 Constant -------- From a29bace26dab453b634d2619621eb45085a314e5 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 16 Jan 2021 01:08:28 +0800 Subject: [PATCH 2/2] remove trailing whitespace --- 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 b54c474870e84e..7ef5b3971a91e8 100644 --- a/Doc/library/typing.rst +++ b/Doc/library/typing.rst @@ -1949,7 +1949,7 @@ Introspection helpers For example, ``list["SomeClass"]`` is implicitly transformed into ``list[ForwardRef("SomeClass")]``. This class should not be instantiated by a user, but may be used by introspection tools. - + .. versionadded:: 3.7.4 Constant