Remove duplicate definitions in sub-classes (#8594)

This commit is contained in:
Nikita Sobolev
2022-08-26 18:10:55 +03:00
committed by GitHub
parent d91e5f0eff
commit 0259068ad6
36 changed files with 25 additions and 235 deletions

View File

@@ -128,9 +128,6 @@ class IMAP4_SSL(IMAP4):
certfile: str | None = ...,
ssl_context: SSLContext | None = ...,
) -> None: ...
host: str
port: int
sock: _socket
sslobj: SSLSocket
file: IO[Any]
if sys.version_info >= (3, 9):
@@ -138,19 +135,11 @@ class IMAP4_SSL(IMAP4):
else:
def open(self, host: str = ..., port: int | None = ...) -> None: ...
def read(self, size: int) -> bytes: ...
def readline(self) -> bytes: ...
def send(self, data: bytes) -> None: ...
def shutdown(self) -> None: ...
def socket(self) -> _socket: ...
def ssl(self) -> SSLSocket: ...
class IMAP4_stream(IMAP4):
command: str
def __init__(self, command: str) -> None: ...
host: str
port: int
sock: _socket
file: IO[Any]
process: subprocess.Popen[bytes]
writefile: IO[Any]
@@ -160,11 +149,6 @@ class IMAP4_stream(IMAP4):
else:
def open(self, host: str | None = ..., port: int | None = ...) -> None: ...
def read(self, size: int) -> bytes: ...
def readline(self) -> bytes: ...
def send(self, data: bytes) -> None: ...
def shutdown(self) -> None: ...
class _Authenticator:
mech: Callable[[bytes], bytes]
def __init__(self, mechinst: Callable[[bytes], bytes]) -> None: ...