1 from typing import Dict, Union
\r
2 from urllib.response import addinfourl
\r
4 # Stubs for urllib.error
\r
6 class URLError(IOError):
\r
7 reason = ... # type: Union[str, BaseException]
\r
8 class HTTPError(URLError, addinfourl):
\r
9 code = ... # type: int
\r
10 headers = ... # type: Dict[str, str]
\r
11 class ContentTooShortError(URLError): ...
\r