mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
Add missing '-> None' to all __init__ methods.
This commit is contained in:
@@ -11,19 +11,19 @@ class SMTPResponseException(SMTPException):
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, code, msg): ...
|
||||
def __init__(self, code, msg) -> None: ...
|
||||
|
||||
class SMTPSenderRefused(SMTPResponseException):
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
sender = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, code, msg, sender): ...
|
||||
def __init__(self, code, msg, sender) -> None: ...
|
||||
|
||||
class SMTPRecipientsRefused(SMTPException):
|
||||
recipients = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, recipients): ...
|
||||
def __init__(self, recipients) -> None: ...
|
||||
|
||||
class SMTPDataError(SMTPResponseException): ...
|
||||
class SMTPConnectError(SMTPResponseException): ...
|
||||
@@ -35,7 +35,7 @@ def quotedata(data): ...
|
||||
|
||||
class SSLFakeFile:
|
||||
sslobj = ... # type: Any
|
||||
def __init__(self, sslobj): ...
|
||||
def __init__(self, sslobj) -> None: ...
|
||||
def readline(self, size=-1): ...
|
||||
def close(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=...): ...
|
||||
def __init__(self, host='', port=0, local_hostname=None, keyfile=None, certfile=None, timeout=...) -> None: ...
|
||||
|
||||
class LMTP(SMTP):
|
||||
ehlo_msg = ... # type: Any
|
||||
def __init__(self, host='', port=..., local_hostname=None): ...
|
||||
def __init__(self, host='', port=..., local_hostname=None) -> None: ...
|
||||
sock = ... # type: Any
|
||||
def connect(self, host='', port=0): ...
|
||||
|
||||
Reference in New Issue
Block a user