From: Ivan Levkivskyi <levkivskyi@gmail.com>
Date: Wed, 19 Jun 2019 00:31:51 +0000 (+0100)
Subject: Document typing.ForwardRef (GH-14216)
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=809ff1181ccc09c3b629f3d0ec66e13eaa111b2e;p=python

Document typing.ForwardRef (GH-14216)
---

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 1a766c29a5..d2dd03d50f 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1001,6 +1001,13 @@ The module defines the following classes, functions and decorators:
 
    .. versionadded:: 3.8
 
+.. class:: ForwardRef
+
+   A class used for internal typing representation of string forward references.
+   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.
+
 .. function:: NewType(typ)
 
    A helper function to indicate a distinct types to a typechecker,