]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494)
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Tue, 9 Feb 2021 16:55:45 +0000 (00:55 +0800)
committerGitHub <noreply@github.com>
Tue, 9 Feb 2021 16:55:45 +0000 (08:55 -0800)
Doc/library/typing.rst

index 8c179ff79d15fa4b4f227b7d2fee218a5c1ad567..046f5e0f2d9eb8691e511cad610b7409132c717e 100644 (file)
@@ -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,