mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
add (overwrite with) mypy stubs, if available
This commit is contained in:
94
stdlib/3/smtplib.pyi
Normal file
94
stdlib/3/smtplib.pyi
Normal file
@@ -0,0 +1,94 @@
|
||||
# Stubs for smtplib (Python 3.4)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class SMTPException(OSError): ...
|
||||
class SMTPServerDisconnected(SMTPException): ...
|
||||
|
||||
class SMTPResponseException(SMTPException):
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, code, msg): ...
|
||||
|
||||
class SMTPSenderRefused(SMTPResponseException):
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
sender = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, code, msg, sender): ...
|
||||
|
||||
class SMTPRecipientsRefused(SMTPException):
|
||||
recipients = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, recipients): ...
|
||||
|
||||
class SMTPDataError(SMTPResponseException): ...
|
||||
class SMTPConnectError(SMTPResponseException): ...
|
||||
class SMTPHeloError(SMTPResponseException): ...
|
||||
class SMTPAuthenticationError(SMTPResponseException): ...
|
||||
|
||||
def quoteaddr(addrstring): ...
|
||||
def quotedata(data): ...
|
||||
|
||||
class SMTP:
|
||||
debuglevel = ... # type: Any
|
||||
file = ... # type: Any
|
||||
helo_resp = ... # type: Any
|
||||
ehlo_msg = ... # type: Any
|
||||
ehlo_resp = ... # type: Any
|
||||
does_esmtp = ... # type: Any
|
||||
default_port = ... # type: Any
|
||||
timeout = ... # type: Any
|
||||
esmtp_features = ... # type: Any
|
||||
source_address = ... # type: Any
|
||||
local_hostname = ... # type: Any
|
||||
def __init__(self, host='', port=0, local_hostname=None, timeout=...,
|
||||
source_address=None): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, *args): ...
|
||||
def set_debuglevel(self, debuglevel): ...
|
||||
sock = ... # type: Any
|
||||
def connect(self, host='', port=0, source_address=None): ...
|
||||
def send(self, s): ...
|
||||
def putcmd(self, cmd, args=''): ...
|
||||
def getreply(self): ...
|
||||
def docmd(self, cmd, args=''): ...
|
||||
def helo(self, name=''): ...
|
||||
def ehlo(self, name=''): ...
|
||||
def has_extn(self, opt): ...
|
||||
def help(self, args=''): ...
|
||||
def rset(self): ...
|
||||
def noop(self): ...
|
||||
def mail(self, sender, options=...): ...
|
||||
def rcpt(self, recip, options=...): ...
|
||||
def data(self, msg): ...
|
||||
def verify(self, address): ...
|
||||
vrfy = ... # type: Any
|
||||
def expn(self, address): ...
|
||||
def ehlo_or_helo_if_needed(self): ...
|
||||
def login(self, user, password): ...
|
||||
def starttls(self, keyfile=None, certfile=None, context=None): ...
|
||||
def sendmail(self, from_addr, to_addrs, msg, mail_options=...,
|
||||
rcpt_options=...): ...
|
||||
def send_message(self, msg, from_addr=None, to_addrs=None, mail_options=...,
|
||||
rcpt_options=...): ...
|
||||
def close(self): ...
|
||||
def quit(self): ...
|
||||
|
||||
class SMTP_SSL(SMTP):
|
||||
default_port = ... # type: Any
|
||||
keyfile = ... # type: Any
|
||||
certfile = ... # type: Any
|
||||
context = ... # type: Any
|
||||
def __init__(self, host='', port=0, local_hostname=None, keyfile=None, certfile=None,
|
||||
timeout=..., source_address=None, context=None): ...
|
||||
|
||||
class LMTP(SMTP):
|
||||
ehlo_msg = ... # type: Any
|
||||
def __init__(self, host='', port=..., local_hostname=None, source_address=None): ...
|
||||
sock = ... # type: Any
|
||||
file = ... # type: Any
|
||||
def connect(self, host='', port=0, source_address=None): ...
|
||||
Reference in New Issue
Block a user