Skip to content

Commit

Permalink
Document typing.ForwardRef (pythonGH-14216)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevkivskyi authored and DinoV committed Jan 14, 2020
1 parent 318aa55 commit c58299a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c58299a

Please sign in to comment.