Skip to content

Commit 8772aa0

Browse files
authored
Note on stubs and forward references
As discussed in python/mypy#3169 (comment)
1 parent cc8ae3d commit 8772aa0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pep-0484.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,9 @@ Additional notes on stub files:
16721672
or ``from .ham import Ham``, then ``ham`` is an exported attribute
16731673
of ``spam``.
16741674

1675+
* Stub files do not need to quote forward references, given that they are not
1676+
supposed to be actually executed.
1677+
16751678
* Stub files may be incomplete. To make type checkers aware of this, the file
16761679
can contain the following code::
16771680

0 commit comments

Comments
 (0)