mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-01 21:50:21 +08:00
Drop Python 3.8 branches (#13776)
This commit is contained in:
+6
-29
@@ -40,13 +40,8 @@ class IMAP4:
|
||||
welcome: bytes
|
||||
capabilities: tuple[str, ...]
|
||||
PROTOCOL_VERSION: str
|
||||
if sys.version_info >= (3, 9):
|
||||
def __init__(self, host: str = "", port: int = 143, timeout: float | None = None) -> None: ...
|
||||
def open(self, host: str = "", port: int = 143, timeout: float | None = None) -> None: ...
|
||||
else:
|
||||
def __init__(self, host: str = "", port: int = 143) -> None: ...
|
||||
def open(self, host: str = "", port: int = 143) -> None: ...
|
||||
|
||||
def __init__(self, host: str = "", port: int = 143, timeout: float | None = None) -> None: ...
|
||||
def open(self, host: str = "", port: int = 143, timeout: float | None = None) -> None: ...
|
||||
def __getattr__(self, attr: str) -> Any: ...
|
||||
host: str
|
||||
port: int
|
||||
@@ -101,9 +96,7 @@ class IMAP4:
|
||||
def thread(self, threading_algorithm: str, charset: str, *search_criteria: str) -> _CommandResults: ...
|
||||
def uid(self, command: str, *args: str) -> _CommandResults: ...
|
||||
def unsubscribe(self, mailbox: str) -> _CommandResults: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def unselect(self) -> _CommandResults: ...
|
||||
|
||||
def unselect(self) -> _CommandResults: ...
|
||||
def xatom(self, name: str, *args: str) -> _CommandResults: ...
|
||||
def print_log(self) -> None: ...
|
||||
|
||||
@@ -115,7 +108,7 @@ class IMAP4_SSL(IMAP4):
|
||||
def __init__(
|
||||
self, host: str = "", port: int = 993, *, ssl_context: SSLContext | None = None, timeout: float | None = None
|
||||
) -> None: ...
|
||||
elif sys.version_info >= (3, 9):
|
||||
else:
|
||||
def __init__(
|
||||
self,
|
||||
host: str = "",
|
||||
@@ -125,22 +118,9 @@ class IMAP4_SSL(IMAP4):
|
||||
ssl_context: SSLContext | None = None,
|
||||
timeout: float | None = None,
|
||||
) -> None: ...
|
||||
else:
|
||||
def __init__(
|
||||
self,
|
||||
host: str = "",
|
||||
port: int = 993,
|
||||
keyfile: str | None = None,
|
||||
certfile: str | None = None,
|
||||
ssl_context: SSLContext | None = None,
|
||||
) -> None: ...
|
||||
sslobj: SSLSocket
|
||||
file: IO[Any]
|
||||
if sys.version_info >= (3, 9):
|
||||
def open(self, host: str = "", port: int | None = 993, timeout: float | None = None) -> None: ...
|
||||
else:
|
||||
def open(self, host: str = "", port: int | None = 993) -> None: ...
|
||||
|
||||
def open(self, host: str = "", port: int | None = 993, timeout: float | None = None) -> None: ...
|
||||
def ssl(self) -> SSLSocket: ...
|
||||
|
||||
class IMAP4_stream(IMAP4):
|
||||
@@ -150,10 +130,7 @@ class IMAP4_stream(IMAP4):
|
||||
process: subprocess.Popen[bytes]
|
||||
writefile: IO[Any]
|
||||
readfile: IO[Any]
|
||||
if sys.version_info >= (3, 9):
|
||||
def open(self, host: str | None = None, port: int | None = None, timeout: float | None = None) -> None: ...
|
||||
else:
|
||||
def open(self, host: str | None = None, port: int | None = None) -> None: ...
|
||||
def open(self, host: str | None = None, port: int | None = None, timeout: float | None = None) -> None: ...
|
||||
|
||||
class _Authenticator:
|
||||
mech: Callable[[bytes], bytes | bytearray | memoryview | str | None]
|
||||
|
||||
Reference in New Issue
Block a user