diff --git a/stdlib/2/_sre.pyi b/stdlib/2/_sre.pyi index 08d1ecc0b..2e53f1480 100644 --- a/stdlib/2/_sre.pyi +++ b/stdlib/2/_sre.pyi @@ -18,7 +18,7 @@ class SRE_Match(object): @overload def group(self, group: int = ...) -> Optional[str]: ... def groupdict(self) -> Dict[int, Optional[str]]: ... - def groups(self) -> Tuple[Optional[str]]: ... + def groups(self) -> Tuple[Optional[str], ...]: ... def span(self) -> Tuple[int, int]: raise IndexError() diff --git a/stdlib/2/_struct.pyi b/stdlib/2/_struct.pyi index 8917187e3..add6f842d 100644 --- a/stdlib/2/_struct.pyi +++ b/stdlib/2/_struct.pyi @@ -11,12 +11,12 @@ class Struct(object): def __init__(self, fmt: str) -> None: ... def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ... def pack(self, *args) -> str: ... - def unpack(self, s: str) -> Tuple[Any]: ... - def unpack_from(self, buffer: bytearray, offset: int = ...) -> Tuple[Any]: ... + def unpack(self, s: str) -> Tuple[Any, ...]: ... + def unpack_from(self, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ... def _clearcache() -> None: ... def calcsize(fmt: str) -> int: ... def pack(fmt: AnyStr, obj: Any) -> str: ... def pack_into(fmt: AnyStr, buffer: bytearray, offset: int, obj: Any) -> None: ... -def unpack(fmt: AnyStr, data: str) -> Tuple[Any]: ... -def unpack_from(fmt: AnyStr, buffer: bytearray, offset: int = ...) -> Tuple[Any]: ... +def unpack(fmt: AnyStr, data: str) -> Tuple[Any, ...]: ... +def unpack_from(fmt: AnyStr, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ... diff --git a/stdlib/2and3/locale.pyi b/stdlib/2and3/locale.pyi index 9ad00e73b..bb64666bb 100644 --- a/stdlib/2and3/locale.pyi +++ b/stdlib/2and3/locale.pyi @@ -84,7 +84,7 @@ def setlocale(category: int, locale: Union[_str, Iterable[_str], None] = ...) -> _str: ... def localeconv() -> Mapping[_str, Union[int, _str, List[int]]]: ... def nl_langinfo(option: int) -> _str: ... -def getdefaultlocale(envvars: Tuple[_str] = ...) -> Tuple[Optional[_str], Optional[_str]]: ... +def getdefaultlocale(envvars: Tuple[_str, ...] = ...) -> Tuple[Optional[_str], Optional[_str]]: ... def getlocale(category: int = ...) -> Sequence[_str]: ... def getpreferredencoding(do_setlocale: bool = ...) -> _str: ... def normalize(localename: _str) -> _str: ... diff --git a/stdlib/3/inspect.pyi b/stdlib/3/inspect.pyi index f3481eba8..ddf28b9e2 100644 --- a/stdlib/3/inspect.pyi +++ b/stdlib/3/inspect.pyi @@ -172,7 +172,7 @@ def getargvalues(frame: FrameType) -> ArgInfo: ... def formatargspec(args: List[str], varargs: Optional[str] = ..., varkw: Optional[str] = ..., - defaults: Optional[Tuple[Any]] = ..., + defaults: Optional[Tuple[Any, ...]] = ..., kwonlyargs: Optional[List[str]] = ..., kwonlydefaults: Optional[Dict[str, Any]] = ..., annotations: Optional[Dict[str, Any]] = ...,