From 10aeb497680869bfb1f3245ec6fbd7a3f5584e3f Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 30 Oct 2015 08:40:37 -0700 Subject: [PATCH] Special case in stub files for import *. --- pep-0484.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pep-0484.txt b/pep-0484.txt index 0bb8845f2..62f507107 100644 --- a/pep-0484.txt +++ b/pep-0484.txt @@ -1040,7 +1040,12 @@ 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. + ...`` form or the equivalent ``from ... import ... as ...`` form. + +* However, as an exception to the previous bullet, all objects + imported into a stub using ``from ... import *`` are considered + exported. (This makes it easier to re-export all objects from a + given module that may very by Python version.) Function overloading --------------------