mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
drop ellipsis assignments from module vars, classvars and instance attrs (#5914)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -15,23 +15,23 @@ _CommandResults = Tuple[str, List[Any]]
|
||||
_AnyResponseData = Union[List[None], List[Union[bytes, Tuple[bytes, bytes]]]]
|
||||
|
||||
class IMAP4:
|
||||
error: Type[Exception] = ...
|
||||
abort: Type[Exception] = ...
|
||||
readonly: Type[Exception] = ...
|
||||
mustquote: Pattern[str] = ...
|
||||
debug: int = ...
|
||||
state: str = ...
|
||||
literal: str | None = ...
|
||||
error: Type[Exception]
|
||||
abort: Type[Exception]
|
||||
readonly: Type[Exception]
|
||||
mustquote: Pattern[str]
|
||||
debug: int
|
||||
state: str
|
||||
literal: str | None
|
||||
tagged_commands: dict[bytes, List[bytes] | None]
|
||||
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] = ...
|
||||
PROTOCOL_VERSION: str = ...
|
||||
continuation_response: str
|
||||
is_readonly: bool
|
||||
tagnum: int
|
||||
tagpre: str
|
||||
tagre: Pattern[str]
|
||||
welcome: bytes
|
||||
capabilities: Tuple[str]
|
||||
PROTOCOL_VERSION: str
|
||||
if sys.version_info >= (3, 9):
|
||||
def __init__(self, host: str = ..., port: int = ..., timeout: float | None = ...) -> None: ...
|
||||
def open(self, host: str = ..., port: int = ..., timeout: float | None = ...) -> None: ...
|
||||
@@ -39,10 +39,10 @@ class IMAP4:
|
||||
def __init__(self, host: str = ..., port: int = ...) -> None: ...
|
||||
def open(self, host: str = ..., port: int = ...) -> None: ...
|
||||
def __getattr__(self, attr: str) -> Any: ...
|
||||
host: str = ...
|
||||
port: int = ...
|
||||
sock: _socket = ...
|
||||
file: IO[str] | IO[bytes] = ...
|
||||
host: str
|
||||
port: int
|
||||
sock: _socket
|
||||
file: IO[str] | IO[bytes]
|
||||
def read(self, size: int) -> bytes: ...
|
||||
def readline(self) -> bytes: ...
|
||||
def send(self, data: bytes) -> None: ...
|
||||
@@ -98,8 +98,8 @@ class IMAP4:
|
||||
def print_log(self) -> None: ...
|
||||
|
||||
class IMAP4_SSL(IMAP4):
|
||||
keyfile: str = ...
|
||||
certfile: str = ...
|
||||
keyfile: str
|
||||
certfile: str
|
||||
if sys.version_info >= (3, 9):
|
||||
def __init__(
|
||||
self,
|
||||
@@ -119,11 +119,11 @@ class IMAP4_SSL(IMAP4):
|
||||
certfile: str | None = ...,
|
||||
ssl_context: SSLContext | None = ...,
|
||||
) -> None: ...
|
||||
host: str = ...
|
||||
port: int = ...
|
||||
sock: _socket = ...
|
||||
sslobj: SSLSocket = ...
|
||||
file: IO[Any] = ...
|
||||
host: str
|
||||
port: int
|
||||
sock: _socket
|
||||
sslobj: SSLSocket
|
||||
file: IO[Any]
|
||||
if sys.version_info >= (3, 9):
|
||||
def open(self, host: str = ..., port: int | None = ..., timeout: float | None = ...) -> None: ...
|
||||
else:
|
||||
@@ -136,15 +136,15 @@ class IMAP4_SSL(IMAP4):
|
||||
def ssl(self) -> SSLSocket: ...
|
||||
|
||||
class IMAP4_stream(IMAP4):
|
||||
command: str = ...
|
||||
command: str
|
||||
def __init__(self, command: str) -> None: ...
|
||||
host: str = ...
|
||||
port: int = ...
|
||||
sock: _socket = ...
|
||||
file: IO[Any] = ...
|
||||
process: subprocess.Popen[bytes] = ...
|
||||
writefile: IO[Any] = ...
|
||||
readfile: IO[Any] = ...
|
||||
host: str
|
||||
port: int
|
||||
sock: _socket
|
||||
file: IO[Any]
|
||||
process: subprocess.Popen[bytes]
|
||||
writefile: IO[Any]
|
||||
readfile: IO[Any]
|
||||
if sys.version_info >= (3, 9):
|
||||
def open(self, host: str | None = ..., port: int | None = ..., timeout: float | None = ...) -> None: ...
|
||||
else:
|
||||
@@ -155,7 +155,7 @@ class IMAP4_stream(IMAP4):
|
||||
def shutdown(self) -> None: ...
|
||||
|
||||
class _Authenticator:
|
||||
mech: Callable[[bytes], bytes] = ...
|
||||
mech: Callable[[bytes], bytes]
|
||||
def __init__(self, mechinst: Callable[[bytes], bytes]) -> None: ...
|
||||
def process(self, data: str) -> str: ...
|
||||
def encode(self, inp: bytes) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user