diff --git a/stdlib/2/urllib2.pyi b/stdlib/2/urllib2.pyi index e15289738033..f71a08b9c9fe 100644 --- a/stdlib/2/urllib2.pyi +++ b/stdlib/2/urllib2.pyi @@ -12,6 +12,7 @@ class URLError(IOError): class HTTPError(URLError, addinfourl): code = ... # type: int headers = ... # type: Dict[str, str] + def __init__(self, url, code, msg, hdrs, fp) -> None: ... class Request(object): host = ... # type: str diff --git a/stdlib/3/urllib/error.pyi b/stdlib/3/urllib/error.pyi index a29347c19d27..6e3d6a58ff2b 100644 --- a/stdlib/3/urllib/error.pyi +++ b/stdlib/3/urllib/error.pyi @@ -8,4 +8,5 @@ class URLError(IOError): class HTTPError(URLError, addinfourl): code = ... # type: int headers = ... # type: Dict[str, str] + def __init__(self, url, code, msg, hdrs, fp) -> None: ... class ContentTooShortError(URLError): ...