Add missing '-> None' to all __init__ methods.

This commit is contained in:
Matthias Kramm
2015-11-09 10:25:08 -08:00
parent d2a3d4a4ed
commit 4fe8915d44
144 changed files with 580 additions and 580 deletions

View File

@@ -11,7 +11,7 @@ def urlcleanup() -> None: ...
class ContentTooShortError(IOError):
content = ... # type: Any
def __init__(self, message, content): ...
def __init__(self, message, content) -> None: ...
class URLopener:
version = ... # type: Any
@@ -45,7 +45,7 @@ class FancyURLopener(URLopener):
auth_cache = ... # type: Any
tries = ... # type: Any
maxtries = ... # type: Any
def __init__(self, *args, **kwargs): ...
def __init__(self, *args, **kwargs) -> None: ...
def http_error_default(self, url, fp, errcode, errmsg, headers): ...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=None): ...
def redirect_internal(self, url, fp, errcode, errmsg, headers, data): ...
@@ -70,7 +70,7 @@ class ftpwrapper:
timeout = ... # type: Any
refcount = ... # type: Any
keepalive = ... # type: Any
def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=True): ...
def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=True) -> None: ...
busy = ... # type: Any
ftp = ... # type: Any
def init(self): ...
@@ -88,25 +88,25 @@ class addbase:
fileno = ... # type: Any
__iter__ = ... # type: Any
next = ... # type: Any
def __init__(self, fp): ...
def __init__(self, fp) -> None: ...
def close(self): ...
class addclosehook(addbase):
closehook = ... # type: Any
hookargs = ... # type: Any
def __init__(self, fp, closehook, *hookargs): ...
def __init__(self, fp, closehook, *hookargs) -> None: ...
def close(self): ...
class addinfo(addbase):
headers = ... # type: Any
def __init__(self, fp, headers): ...
def __init__(self, fp, headers) -> None: ...
def info(self): ...
class addinfourl(addbase):
headers = ... # type: Any
url = ... # type: Any
code = ... # type: Any
def __init__(self, fp, headers, url, code=None): ...
def __init__(self, fp, headers, url, code=None) -> None: ...
def info(self): ...
def getcode(self): ...
def geturl(self): ...