10000 Clarify that imports into stubs are not exported unless using "as". · python/typing@4215e09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4215e09

Browse files
author
Guido van Rossum
committed
Clarify that imports into stubs are not exported unless using "as".
Closes issue #22.
1 parent 37aa1fd commit 4215e09

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pep-0484.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,12 @@ While stub files are syntactically valid Python modules, they use the
756756
same directory as the corresponding real module. This also reinforces
757757
the notion that no runtime behavior should be expected of stub files.
758758

759+
Additional notes on stub files:
760+
761+
* Modules and variables imported into the stub are not considered
762+
exported from the stub unless the import uses the ``import ... as
763+
...`` form.
764+
759765
Function overloading
760766
--------------------
761767

0 commit comments

Comments
 (0)
0