massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / smtplib.pyi
1 from typing import Any\r
2 \r
3 class SMTPException(Exception): ...\r
4 class SMTPServerDisconnected(SMTPException): ...\r
5 \r
6 class SMTPResponseException(SMTPException):\r
7     smtp_code = ...  # type: Any\r
8     smtp_error = ...  # type: Any\r
9     args = ...  # type: Any\r
10     def __init__(self, code, msg) -> None: ...\r
11 \r
12 class SMTPSenderRefused(SMTPResponseException):\r
13     smtp_code = ...  # type: Any\r
14     smtp_error = ...  # type: Any\r
15     sender = ...  # type: Any\r
16     args = ...  # type: Any\r
17     def __init__(self, code, msg, sender) -> None: ...\r
18 \r
19 class SMTPRecipientsRefused(SMTPException):\r
20     recipients = ...  # type: Any\r
21     args = ...  # type: Any\r
22     def __init__(self, recipients) -> None: ...\r
23 \r
24 class SMTPDataError(SMTPResponseException): ...\r
25 class SMTPConnectError(SMTPResponseException): ...\r
26 class SMTPHeloError(SMTPResponseException): ...\r
27 class SMTPAuthenticationError(SMTPResponseException): ...\r
28 \r
29 def quoteaddr(addr): ...\r
30 def quotedata(data): ...\r
31 \r
32 class SSLFakeFile:\r
33     sslobj = ...  # type: Any\r
34     def __init__(self, sslobj) -> None: ...\r
35     def readline(self, size=...): ...\r
36     def close(self): ...\r
37 \r
38 class SMTP:\r
39     debuglevel = ...  # type: Any\r
40     file = ...  # type: Any\r
41     helo_resp = ...  # type: Any\r
42     ehlo_msg = ...  # type: Any\r
43     ehlo_resp = ...  # type: Any\r
44     does_esmtp = ...  # type: Any\r
45     default_port = ...  # type: Any\r
46     timeout = ...  # type: Any\r
47     esmtp_features = ...  # type: Any\r
48     local_hostname = ...  # type: Any\r
49     def __init__(self, host: str = ..., port: int = ..., local_hostname=..., timeout=...) -> None: ...\r
50     def set_debuglevel(self, debuglevel): ...\r
51     sock = ...  # type: Any\r
52     def connect(self, host=..., port=...): ...\r
53     def send(self, str): ...\r
54     def putcmd(self, cmd, args=...): ...\r
55     def getreply(self): ...\r
56     def docmd(self, cmd, args=...): ...\r
57     def helo(self, name=...): ...\r
58     def ehlo(self, name=...): ...\r
59     def has_extn(self, opt): ...\r
60     def help(self, args=...): ...\r
61     def rset(self): ...\r
62     def noop(self): ...\r
63     def mail(self, sender, options=...): ...\r
64     def rcpt(self, recip, options=...): ...\r
65     def data(self, msg): ...\r
66     def verify(self, address): ...\r
67     vrfy = ...  # type: Any\r
68     def expn(self, address): ...\r
69     def ehlo_or_helo_if_needed(self): ...\r
70     def login(self, user, password): ...\r
71     def starttls(self, keyfile=..., certfile=...): ...\r
72     def sendmail(self, from_addr, to_addrs, msg, mail_options=..., rcpt_options=...): ...\r
73     def close(self): ...\r
74     def quit(self): ...\r
75 \r
76 class SMTP_SSL(SMTP):\r
77     default_port = ...  # type: Any\r
78     keyfile = ...  # type: Any\r
79     certfile = ...  # type: Any\r
80     def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=...) -> None: ...\r
81 \r
82 class LMTP(SMTP):\r
83     ehlo_msg = ...  # type: Any\r
84     def __init__(self, host=..., port=..., local_hostname=...) -> None: ...\r
85     sock = ...  # type: Any\r
86     def connect(self, host=..., port=...): ...\r