From 4215e097685c09d5e78c3b01fb5d226bbba3df03 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 18 May 2015 13:08:21 -0700 Subject: [PATCH] Clarify that imports into stubs are not exported unless using "as". Closes issue #22. --- pep-0484.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pep-0484.txt b/pep-0484.txt index 0a896f6bb..c02745076 100644 --- a/pep-0484.txt +++ b/pep-0484.txt @@ -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 --------------------