mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Fix some errors with --disallow-any-generics (#3276)
See #3267. Covers all of stdlib/2and3.
This commit is contained in:
@@ -44,7 +44,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) -> Tuple[str, str]: ...
|
||||
def authenticate(self, mechanism: str, authobject: Callable[[bytes], Optional[bytes]]) -> Tuple[str, str]: ...
|
||||
def capability(self) -> CommandResults: ...
|
||||
def check(self) -> CommandResults: ...
|
||||
def close(self) -> CommandResults: ...
|
||||
@@ -111,7 +111,7 @@ class IMAP4_stream(IMAP4):
|
||||
port: int = ...
|
||||
sock: _socket = ...
|
||||
file: IO[Any] = ...
|
||||
process: subprocess.Popen = ...
|
||||
process: subprocess.Popen[bytes] = ...
|
||||
writefile: IO[Any] = ...
|
||||
readfile: IO[Any] = ...
|
||||
def open(self, host: str = ..., port: Optional[int] = ...) -> None: ...
|
||||
@@ -121,8 +121,8 @@ class IMAP4_stream(IMAP4):
|
||||
def shutdown(self) -> None: ...
|
||||
|
||||
class _Authenticator:
|
||||
mech: Callable = ...
|
||||
def __init__(self, mechinst: Callable) -> None: ...
|
||||
mech: Callable[[bytes], bytes] = ...
|
||||
def __init__(self, mechinst: Callable[[bytes], bytes]) -> None: ...
|
||||
def process(self, data: str) -> str: ...
|
||||
def encode(self, inp: bytes) -> str: ...
|
||||
def decode(self, inp: str) -> bytes: ...
|
||||
|
||||
Reference in New Issue
Block a user