mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
requests: type RequestException members (not Any) (#8989)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
from typing import Any
|
||||
|
||||
from urllib3.exceptions import HTTPError as BaseHTTPError
|
||||
|
||||
from .models import Request, Response
|
||||
|
||||
class RequestException(OSError):
|
||||
response: Any
|
||||
request: Any
|
||||
response: Response | None
|
||||
request: Request | None
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class InvalidJSONError(RequestException): ...
|
||||
class JSONDecodeError(InvalidJSONError): ...
|
||||
class HTTPError(RequestException): ...
|
||||
|
||||
class HTTPError(RequestException):
|
||||
request: Request
|
||||
response: Response
|
||||
|
||||
class ConnectionError(RequestException): ...
|
||||
class ProxyError(ConnectionError): ...
|
||||
class SSLError(ConnectionError): ...
|
||||
|
||||
Reference in New Issue
Block a user