Skip to content

Commit

Permalink
Clarify that imports into stubs are not exported unless using "as".
Browse files Browse the repository at this point in the history
Closes issue #22.
  • Loading branch information
Guido van Rossum committed May 18, 2015
1 parent 37aa1fd commit 4215e09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pep-0484.txt
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,12 @@ While stub files are syntactically valid Python modules, they use the
same directory as the corresponding real module. This also reinforces
the notion that no runtime behavior should be expected of stub files.

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.

Function overloading
--------------------

Expand Down

0 comments on commit 4215e09

Please sign in to comment.