@@ -4,7 +4,10 @@ import socket
4
4
from collections import defaultdict
5
5
from typing import Any
6
6
7
- __all__ = ["SMTPChannel" , "SMTPServer" , "DebuggingServer" , "PureProxy" , "MailmanProxy" ]
7
+ if sys .version_info >= (3 , 11 ):
8
+ __all__ = ["SMTPChannel" , "SMTPServer" , "DebuggingServer" , "PureProxy" ]
9
+ else :
10
+ __all__ = ["SMTPChannel" , "SMTPServer" , "DebuggingServer" , "PureProxy" , "MailmanProxy" ]
8
11
9
12
_Address = tuple [str , int ] # (host, port)
10
13
@@ -81,5 +84,6 @@ class DebuggingServer(SMTPServer): ...
81
84
class PureProxy (SMTPServer ):
82
85
def process_message (self , peer : _Address , mailfrom : str , rcpttos : list [str ], data : bytes | str ) -> str | None : ... # type: ignore[override]
83
86
84
- class MailmanProxy (PureProxy ):
85
- def process_message (self , peer : _Address , mailfrom : str , rcpttos : list [str ], data : bytes | str ) -> str | None : ... # type: ignore[override]
87
+ if sys .version_info < (3 , 11 ):
88
+ class MailmanProxy (PureProxy ):
89
+ def process_message (self , peer : _Address , mailfrom : str , rcpttos : list [str ], data : bytes | str ) -> str | None : ... # type: ignore[override]
0 commit comments