Skip to content

Commit 03ec402

Browse files
matthiaskrammJelleZijlstra
authored andcommitted
Adjust ast imports to make pytype happy. (#1617)
Turns out that pytype is a bit more finicky about imports, and differentiates between '*' imports for export, and imports for use in the local pyi. This adjusts ast.pyi to make pytype understand it again.
1 parent 248f74d commit 03ec402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/2/ast.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import typing
44
from typing import Any, Iterator, Union
55

66
from _ast import *
7+
from _ast import AST, Module
78

89
__version__ = ... # type: str
910
PyCF_ONLY_AST = ... # type: int

0 commit comments

Comments
 (0)