From 5fe6a5ba8b5d362f9339d5fef4d31ba1704c8924 Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Mon, 18 May 2020 08:30:52 -0700 Subject: [PATCH] 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. --- stdlib/2and3/parser.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/parser.pyi b/stdlib/2and3/parser.pyi index 85c19ecc4..d6ed07ba8 100644 --- a/stdlib/2and3/parser.pyi +++ b/stdlib/2and3/parser.pyi @@ -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]: ...