Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pep-0484.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,9 @@ Additional notes on stub files:
* Modules and variables imported into the stub are not considered
exported from the stub unless the import uses the ``import ... as
...`` form or the equivalent ``from ... import ... as ...`` form.
(*UPDATE:* To clarify, the intention here is that only names
imported using the form ``X as X`` will be exported, i.e. the name
before and after ``as`` must be the same.)

* However, as an exception to the previous bullet, all objects
imported into a stub using ``from ... import *`` are considered
Expand Down