massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / urllib / error.pyi
1 from email.message import Message
2 from typing import IO
3 from urllib.response import addinfourl
4
5 # Stubs for urllib.error
6
7 class URLError(IOError):
8     reason: str | BaseException
9     def __init__(self, reason: str | BaseException, filename: str | None = ...) -> None: ...
10
11 class HTTPError(URLError, addinfourl):
12     code: int
13     def __init__(self, url: str, code: int, msg: str, hdrs: Message, fp: IO[bytes] | None) -> None: ...
14
15 class ContentTooShortError(URLError):
16     content: tuple[str, Message]
17     def __init__(self, message: str, content: tuple[str, Message]) -> None: ...