parser: STType.compile() can be called with no arguments. (#4034)

The filename parameter is optional:
https://docs.python.org/3/library/parser.html#parser.ST.compile.
This commit is contained in:
Rebecca Chen
2020-05-18 08:30:52 -07:00
committed by GitHub
parent 037377f502
commit 5fe6a5ba8b

View File

@@ -22,7 +22,7 @@ def issuite(st: STType) -> bool: ...
class ParserError(Exception): ...
class STType:
def compile(self, filename: _Path) -> CodeType: ...
def compile(self, filename: _Path = ...) -> CodeType: ...
def isexpr(self) -> bool: ...
def issuite(self) -> bool: ...
def tolist(self, line_info: bool = ..., col_info: bool = ...) -> List[Any]: ...