mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Remove duplicate definitions in sub-classes (#8594)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user