mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 14:10:23 +08:00
+10
-14
@@ -96,20 +96,16 @@ class SMTP:
|
||||
vrfy = verify
|
||||
def expn(self, address: str) -> _Reply: ...
|
||||
def ehlo_or_helo_if_needed(self) -> None: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
user: str
|
||||
password: str
|
||||
def auth(self, mechanism: str, authobject: _AuthObject, *, initial_response_ok: bool = ...) -> _Reply: ...
|
||||
@overload
|
||||
def auth_cram_md5(self, challenge: None = ...) -> None: ...
|
||||
@overload
|
||||
def auth_cram_md5(self, challenge: bytes) -> str: ...
|
||||
def auth_plain(self, challenge: Optional[bytes] = ...) -> str: ...
|
||||
def auth_login(self, challenge: Optional[bytes] = ...) -> str: ...
|
||||
def login(self, user: str, password: str, *,
|
||||
initial_response_ok: bool = ...) -> _Reply: ...
|
||||
else:
|
||||
def login(self, user: str, password: str) -> _Reply: ...
|
||||
user: str
|
||||
password: str
|
||||
def auth(self, mechanism: str, authobject: _AuthObject, *, initial_response_ok: bool = ...) -> _Reply: ...
|
||||
@overload
|
||||
def auth_cram_md5(self, challenge: None = ...) -> None: ...
|
||||
@overload
|
||||
def auth_cram_md5(self, challenge: bytes) -> str: ...
|
||||
def auth_plain(self, challenge: Optional[bytes] = ...) -> str: ...
|
||||
def auth_login(self, challenge: Optional[bytes] = ...) -> str: ...
|
||||
def login(self, user: str, password: str, *, initial_response_ok: bool = ...) -> _Reply: ...
|
||||
def starttls(self, keyfile: Optional[str] = ..., certfile: Optional[str] = ...,
|
||||
context: Optional[SSLContext] = ...) -> _Reply: ...
|
||||
def sendmail(self, from_addr: str, to_addrs: Union[str, Sequence[str]],
|
||||
|
||||
Reference in New Issue
Block a user