mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
fix some missing ", ..." in tuples (#1079)
This commit is contained in:
committed by
Guido van Rossum
parent
de95aac022
commit
c1944f944e
@@ -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()
|
||||
|
||||
|
||||
@@ -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, ...]: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user