Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -36,7 +36,7 @@ def quotedata(data): ...
class SSLFakeFile:
sslobj = ... # type: Any
def __init__(self, sslobj) -> None: ...
def readline(self, size=-1): ...
def readline(self, size=...): ...
def close(self): ...
class SMTP:
@@ -50,18 +50,18 @@ class SMTP:
timeout = ... # type: Any
esmtp_features = ... # type: Any
local_hostname = ... # type: Any
def __init__(self, host: str = '', port: int = 0, local_hostname=None, timeout=...) -> None: ...
def __init__(self, host: str = ..., port: int = ..., local_hostname=..., timeout=...) -> None: ...
def set_debuglevel(self, debuglevel): ...
sock = ... # type: Any
def connect(self, host='', port=0): ...
def connect(self, host=..., port=...): ...
def send(self, str): ...
def putcmd(self, cmd, args=''): ...
def putcmd(self, cmd, args=...): ...
def getreply(self): ...
def docmd(self, cmd, args=''): ...
def helo(self, name=''): ...
def ehlo(self, name=''): ...
def docmd(self, cmd, args=...): ...
def helo(self, name=...): ...
def ehlo(self, name=...): ...
def has_extn(self, opt): ...
def help(self, args=''): ...
def help(self, args=...): ...
def rset(self): ...
def noop(self): ...
def mail(self, sender, options=...): ...
@@ -72,7 +72,7 @@ class SMTP:
def expn(self, address): ...
def ehlo_or_helo_if_needed(self): ...
def login(self, user, password): ...
def starttls(self, keyfile=None, certfile=None): ...
def starttls(self, keyfile=..., certfile=...): ...
def sendmail(self, from_addr, to_addrs, msg, mail_options=..., rcpt_options=...): ...
def close(self): ...
def quit(self): ...
@@ -81,10 +81,10 @@ class SMTP_SSL(SMTP):
default_port = ... # type: Any
keyfile = ... # type: Any
certfile = ... # type: Any
def __init__(self, host='', port=0, local_hostname=None, keyfile=None, certfile=None, timeout=...) -> None: ...
def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=...) -> None: ...
class LMTP(SMTP):
ehlo_msg = ... # type: Any
def __init__(self, host='', port=..., local_hostname=None) -> None: ...
def __init__(self, host=..., port=..., local_hostname=...) -> None: ...
sock = ... # type: Any
def connect(self, host='', port=0): ...
def connect(self, host=..., port=...): ...