diff --git a/pep-0484.txt b/pep-0484.txt index de010de78c4..5d27af5c386 100644 --- a/pep-0484.txt +++ b/pep-0484.txt @@ -1657,7 +1657,10 @@ Additional notes on stub files: * 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 vary by Python version.) + given module that may vary by Python version.) Similarly, imports + of submodules in the ``__init__.pyi`` files of a package are + considered exported. For example, if ``a/__init__.pyi`` contains + just ``from . import b``, then ``b`` is exported. * Stub files may be incomplete. To make type checkers aware of this, the file can contain the following code::