mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
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.
This commit is contained in:
committed by
Jelle Zijlstra
parent
248f74d31b
commit
03ec4023ff
@@ -4,6 +4,7 @@ import typing
|
||||
from typing import Any, Iterator, Union
|
||||
|
||||
from _ast import *
|
||||
from _ast import AST, Module
|
||||
|
||||
__version__ = ... # type: str
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
|
||||
Reference in New Issue
Block a user