mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 16:14:24 +08:00
@@ -57,7 +57,7 @@ class Command:
|
||||
) -> str: ...
|
||||
def make_file(
|
||||
self,
|
||||
infiles: str | list[str] | tuple[str],
|
||||
infiles: str | list[str] | tuple[str, ...],
|
||||
outfile: str,
|
||||
func: Callable[..., Any],
|
||||
args: list[Any],
|
||||
|
||||
@@ -28,7 +28,7 @@ class IMAP4:
|
||||
tagpre: str = ...
|
||||
tagre: Pattern[Text] = ...
|
||||
welcome: bytes = ...
|
||||
capabilities: tuple[str] = ...
|
||||
capabilities: tuple[str, ...] = ...
|
||||
PROTOCOL_VERSION: str = ...
|
||||
def __init__(self, host: str = ..., port: int = ...) -> None: ...
|
||||
def open(self, host: str = ..., port: int = ...) -> None: ...
|
||||
@@ -127,5 +127,5 @@ class _Authenticator:
|
||||
|
||||
def Internaldate2tuple(resp: str) -> time.struct_time: ...
|
||||
def Int2AP(num: int) -> str: ...
|
||||
def ParseFlags(resp: str) -> tuple[str]: ...
|
||||
def ParseFlags(resp: str) -> tuple[str, ...]: ...
|
||||
def Time2Internaldate(date_time: float | time.struct_time | str) -> str: ...
|
||||
|
||||
@@ -6,7 +6,7 @@ def suite(source: Text) -> 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: Text = ...) -> CodeType: ...
|
||||
def isexpr(st: STType) -> bool: ...
|
||||
def issuite(st: STType) -> bool: ...
|
||||
@@ -18,4 +18,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, ...]: ...
|
||||
|
||||
@@ -57,7 +57,7 @@ class Command:
|
||||
) -> str: ...
|
||||
def make_file(
|
||||
self,
|
||||
infiles: str | list[str] | tuple[str],
|
||||
infiles: str | list[str] | tuple[str, ...],
|
||||
outfile: str,
|
||||
func: Callable[..., Any],
|
||||
args: list[Any],
|
||||
|
||||
@@ -32,7 +32,7 @@ class IMAP4:
|
||||
tagpre: str
|
||||
tagre: Pattern[str]
|
||||
welcome: bytes
|
||||
capabilities: tuple[str]
|
||||
capabilities: tuple[str, ...]
|
||||
PROTOCOL_VERSION: str
|
||||
if sys.version_info >= (3, 9):
|
||||
def __init__(self, host: str = ..., port: int = ..., timeout: float | None = ...) -> None: ...
|
||||
@@ -165,5 +165,5 @@ class _Authenticator:
|
||||
|
||||
def Internaldate2tuple(resp: str) -> time.struct_time: ...
|
||||
def Int2AP(num: int) -> str: ...
|
||||
def ParseFlags(resp: str) -> tuple[str]: ...
|
||||
def ParseFlags(resp: str) -> tuple[str, ...]: ...
|
||||
def Time2Internaldate(date_time: float | time.struct_time | str) -> str: ...
|
||||
|
||||
@@ -254,7 +254,7 @@ class QueueHandler(Handler):
|
||||
def enqueue(self, record: LogRecord) -> None: ...
|
||||
|
||||
class QueueListener:
|
||||
handlers: tuple[Handler] # undocumented
|
||||
handlers: tuple[Handler, ...] # undocumented
|
||||
respect_handler_level: bool # undocumented
|
||||
if sys.version_info >= (3, 7):
|
||||
queue: SimpleQueue[Any] | Queue[Any] # undocumented
|
||||
|
||||
@@ -11,7 +11,7 @@ _MIN_COMMON_LEN: int
|
||||
_MIN_DIFF_LEN: int
|
||||
|
||||
def _shorten(s: str, prefixlen: int, suffixlen: int) -> str: ...
|
||||
def _common_shorten_repr(*args: str) -> tuple[str]: ...
|
||||
def _common_shorten_repr(*args: str) -> tuple[str, ...]: ...
|
||||
def safe_repr(obj: object, short: bool = ...) -> str: ...
|
||||
def strclass(cls: type) -> str: ...
|
||||
def sorted_list_difference(expected: Sequence[_T], actual: Sequence[_T]) -> tuple[list[_T], list[_T]]: ...
|
||||
|
||||
Reference in New Issue
Block a user