From 032e6ee90cbb938259a2aa2183966502de19108e Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Fri, 7 Jan 2022 11:34:22 +0800 Subject: [PATCH] requests: Add JSONDecodeError (#6838) --- stubs/requests/METADATA.toml | 2 +- stubs/requests/requests/exceptions.pyi | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/requests/METADATA.toml b/stubs/requests/METADATA.toml index 53ad05966..e6e352159 100644 --- a/stubs/requests/METADATA.toml +++ b/stubs/requests/METADATA.toml @@ -1,2 +1,2 @@ -version = "2.26.*" +version = "2.27.*" python2 = true diff --git a/stubs/requests/requests/exceptions.pyi b/stubs/requests/requests/exceptions.pyi index 6ad059a3c..456496a7f 100644 --- a/stubs/requests/requests/exceptions.pyi +++ b/stubs/requests/requests/exceptions.pyi @@ -7,6 +7,8 @@ class RequestException(IOError): request: Any def __init__(self, *args, **kwargs) -> None: ... +class InvalidJSONError(RequestException): ... +class JSONDecodeError(InvalidJSONError): ... class HTTPError(RequestException): ... class ConnectionError(RequestException): ... class ProxyError(ConnectionError): ...