mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -25,14 +25,14 @@ class IMAP4:
|
||||
state: str
|
||||
literal: str | None
|
||||
tagged_commands: dict[bytes, _list[bytes] | None]
|
||||
untagged_responses: dict[str, _list[bytes | Tuple[bytes, bytes]]]
|
||||
untagged_responses: dict[str, _list[bytes | tuple[bytes, bytes]]]
|
||||
continuation_response: str
|
||||
is_readonly: bool
|
||||
tagnum: int
|
||||
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: ...
|
||||
@@ -53,7 +53,7 @@ class IMAP4:
|
||||
def recent(self) -> _CommandResults: ...
|
||||
def response(self, code: str) -> _CommandResults: ...
|
||||
def append(self, mailbox: str, flags: str, date_time: str, message: str) -> str: ...
|
||||
def authenticate(self, mechanism: str, authobject: Callable[[bytes], bytes | None]) -> Tuple[str, str]: ...
|
||||
def authenticate(self, mechanism: str, authobject: Callable[[bytes], bytes | None]) -> tuple[str, str]: ...
|
||||
def capability(self) -> _CommandResults: ...
|
||||
def check(self) -> _CommandResults: ...
|
||||
def close(self) -> _CommandResults: ...
|
||||
@@ -65,29 +65,29 @@ class IMAP4:
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, t: Type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
|
||||
def expunge(self) -> _CommandResults: ...
|
||||
def fetch(self, message_set: str, message_parts: str) -> Tuple[str, _AnyResponseData]: ...
|
||||
def fetch(self, message_set: str, message_parts: str) -> tuple[str, _AnyResponseData]: ...
|
||||
def getacl(self, mailbox: str) -> _CommandResults: ...
|
||||
def getannotation(self, mailbox: str, entry: str, attribute: str) -> _CommandResults: ...
|
||||
def getquota(self, root: str) -> _CommandResults: ...
|
||||
def getquotaroot(self, mailbox: str) -> _CommandResults: ...
|
||||
def list(self, directory: str = ..., pattern: str = ...) -> Tuple[str, _AnyResponseData]: ...
|
||||
def login(self, user: str, password: str) -> Tuple[Literal["OK"], _list[bytes]]: ...
|
||||
def list(self, directory: str = ..., pattern: str = ...) -> tuple[str, _AnyResponseData]: ...
|
||||
def login(self, user: str, password: str) -> tuple[Literal["OK"], _list[bytes]]: ...
|
||||
def login_cram_md5(self, user: str, password: str) -> _CommandResults: ...
|
||||
def logout(self) -> Tuple[str, _AnyResponseData]: ...
|
||||
def logout(self) -> tuple[str, _AnyResponseData]: ...
|
||||
def lsub(self, directory: str = ..., pattern: str = ...) -> _CommandResults: ...
|
||||
def myrights(self, mailbox: str) -> _CommandResults: ...
|
||||
def namespace(self) -> _CommandResults: ...
|
||||
def noop(self) -> Tuple[str, _list[bytes]]: ...
|
||||
def noop(self) -> tuple[str, _list[bytes]]: ...
|
||||
def partial(self, message_num: str, message_part: str, start: str, length: str) -> _CommandResults: ...
|
||||
def proxyauth(self, user: str) -> _CommandResults: ...
|
||||
def rename(self, oldmailbox: str, newmailbox: str) -> _CommandResults: ...
|
||||
def search(self, charset: str | None, *criteria: str) -> _CommandResults: ...
|
||||
def select(self, mailbox: str = ..., readonly: bool = ...) -> Tuple[str, _list[bytes | None]]: ...
|
||||
def select(self, mailbox: str = ..., readonly: bool = ...) -> tuple[str, _list[bytes | None]]: ...
|
||||
def setacl(self, mailbox: str, who: str, what: str) -> _CommandResults: ...
|
||||
def setannotation(self, *args: str) -> _CommandResults: ...
|
||||
def setquota(self, root: str, limits: str) -> _CommandResults: ...
|
||||
def sort(self, sort_criteria: str, charset: str, *search_criteria: str) -> _CommandResults: ...
|
||||
def starttls(self, ssl_context: Any | None = ...) -> Tuple[Literal["OK"], _list[None]]: ...
|
||||
def starttls(self, ssl_context: Any | None = ...) -> tuple[Literal["OK"], _list[None]]: ...
|
||||
def status(self, mailbox: str, names: str) -> _CommandResults: ...
|
||||
def store(self, message_set: str, command: str, flags: str) -> _CommandResults: ...
|
||||
def subscribe(self, mailbox: str) -> _CommandResults: ...
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user