Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions stdlib/2and3/poplib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import ssl
import sys
from typing import Any, BinaryIO, Dict, List, Optional, Pattern, Text, Tuple

_LongResp = Tuple[bytes, List[bytes], int]

class error_proto(Exception): pass

POP3_PORT: int
Expand All @@ -31,9 +33,9 @@ class POP3:
def user(self, user: Text) -> bytes: ...
def pass_(self, pswd: Text) -> bytes: ...
def stat(self) -> Tuple[int, int]: ...
def list(self, which: Optional[Text] = ...) -> bytes: ...
def retr(self, which: Text) -> bytes: ...
def dele(self, which: Text) -> bytes: ...
def list(self, which: Optional[Any] = ...) -> _LongResp: ...
def retr(self, which: Any) -> _LongResp: ...
def dele(self, which: Any) -> bytes: ...
def noop(self) -> bytes: ...
def rset(self) -> bytes: ...
def quit(self) -> bytes: ...
Expand All @@ -46,8 +48,8 @@ class POP3:
def apop(self, user: Text, secret: Text) -> bytes: ...
else:
def apop(self, user: Text, password: Text) -> bytes: ...
def top(self, which: Text, howmuch: int) -> bytes: ...
def uidl(self, which: Optional[Text] = ...) -> bytes: ...
def top(self, which: Any, howmuch: int) -> _LongResp: ...
def uidl(self, which: Optional[Any] = ...) -> _LongResp: ...
if sys.version_info >= (3, 5):
def utf8(self) -> bytes: ...
if sys.version_info >= (3, 4):
Expand Down