From b04512eaaa942063d4b83061d337daa7dd3be0da Mon Sep 17 00:00:00 2001 From: MapleCCC Date: Thu, 30 Sep 2021 15:35:38 +0800 Subject: [PATCH] Fix return type of st2tuple() and STType.totuple() (#6091) --- stdlib/parser.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/parser.pyi b/stdlib/parser.pyi index cefcad5b0..aecf3244c 100644 --- a/stdlib/parser.pyi +++ b/stdlib/parser.pyi @@ -7,7 +7,7 @@ def suite(source: str) -> STType: ... def sequence2st(sequence: Sequence[Any]) -> STType: ... def tuple2st(sequence: Sequence[Any]) -> STType: ... def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ... -def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any]: ... +def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any, ...]: ... def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ... def isexpr(st: STType) -> bool: ... def issuite(st: STType) -> bool: ... @@ -19,4 +19,4 @@ class STType: def isexpr(self) -> bool: ... def issuite(self) -> bool: ... def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ... - def totuple(self, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any]: ... + def totuple(self, line_info: bool = ..., col_info: bool = ...) -> Tuple[Any, ...]: ...