mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add missing 'headers' property to urllib.error.HTTPError. (#7783)
Seen here: https://docs.python.org/3/library/urllib.error.html#urllib.error.HTTPError.headers
This commit is contained in:
@@ -9,6 +9,8 @@ class URLError(IOError):
|
||||
def __init__(self, reason: str | BaseException, filename: str | None = ...) -> None: ...
|
||||
|
||||
class HTTPError(URLError, addinfourl):
|
||||
@property
|
||||
def headers(self) -> Message: ... # type: ignore[override]
|
||||
@property
|
||||
def reason(self) -> str: ... # type: ignore[override]
|
||||
code: int
|
||||
|
||||
Reference in New Issue
Block a user