ast: update for py38 (#3698)

This commit is contained in:
Shantanu
2020-02-01 09:25:56 -08:00
committed by GitHub
parent 1ca071a732
commit f4787297e9
2 changed files with 20 additions and 12 deletions

View File

@@ -65,3 +65,10 @@ def literal_eval(node_or_string: Union[str, AST]) -> Any: ...
if sys.version_info >= (3, 8):
def get_source_segment(source: str, node: AST, *, padded: bool = ...) -> Optional[str]: ...
def walk(node: AST) -> Iterator[AST]: ...
if sys.version_info >= (3, 8):
class Num(Constant): ...
class Str(Constant): ...
class Bytes(Constant): ...
class NameConstant(Constant): ...
class Ellipsis(Constant): ...