@@ -6,6 +6,8 @@ import ssl
6
6
import sys
7
7
from typing import Any , BinaryIO , Dict , List , Optional , Pattern , Text , Tuple
8
8
9
+ _LongResp = Tuple [bytes , List [bytes ], int ]
10
+
9
11
class error_proto (Exception ): pass
10
12
11
13
POP3_PORT : int
@@ -31,9 +33,9 @@ class POP3:
31
33
def user (self , user : Text ) -> bytes : ...
32
34
def pass_ (self , pswd : Text ) -> bytes : ...
33
35
def stat (self ) -> Tuple [int , int ]: ...
34
- def list (self , which : Optional [Text ] = ...) -> bytes : ...
35
- def retr (self , which : Text ) -> bytes : ...
36
- def dele (self , which : Text ) -> bytes : ...
36
+ def list (self , which : Optional [Any ] = ...) -> _LongResp : ...
37
+ def retr (self , which : Any ) -> _LongResp : ...
38
+ def dele (self , which : Any ) -> bytes : ...
37
39
def noop (self ) -> bytes : ...
38
40
def rset (self ) -> bytes : ...
39
41
def quit (self ) -> bytes : ...
@@ -46,8 +48,8 @@ class POP3:
46
48
def apop (self , user : Text , secret : Text ) -> bytes : ...
47
49
else :
48
50
def apop (self , user : Text , password : Text ) -> bytes : ...
49
- def top (self , which : Text , howmuch : int ) -> bytes : ...
50
- def uidl (self , which : Optional [Text ] = ...) -> bytes : ...
51
+ def top (self , which : Any , howmuch : int ) -> _LongResp : ...
52
+ def uidl (self , which : Optional [Any ] = ...) -> _LongResp : ...
51
53
if sys .version_info >= (3 , 5 ):
52
54
def utf8 (self ) -> bytes : ...
53
55
if sys .version_info >= (3 , 4 ):
0 commit comments