Commit 809ff118 authored by Ivan Levkivskyi's avatar Ivan Levkivskyi Committed by GitHub

Document typing.ForwardRef (GH-14216)

parent 47c2de77
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment