Skip to content

Commit

Permalink
Note on stubs and forward references
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoisset authored Sep 22, 2017
1 parent cc8ae3d commit 8772aa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pep-0484.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,9 @@ Additional notes on stub files:
or ``from .ham import Ham``, then ``ham`` is an exported attribute
of ``spam``.

* Stub files do not need to quote forward references, given that they are not
supposed to be actually executed.

* Stub files may be incomplete. To make type checkers aware of this, the file
can contain the following code::

Expand Down

0 comments on commit 8772aa0

Please sign in to comment.