From 3128c6afbf6cd1a72822c8915beb0e9f2ded5b55 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sat, 25 Sep 2021 10:50:36 +0200 Subject: [PATCH] requests: Response.encoding can be None (#6067) The type of the `encoding` attribute was previously typed as `str`, even though it can be `None` at runtime. --- stubs/requests/requests/models.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/requests/requests/models.pyi b/stubs/requests/requests/models.pyi index ff0822671..957a0e074 100644 --- a/stubs/requests/requests/models.pyi +++ b/stubs/requests/requests/models.pyi @@ -93,7 +93,7 @@ class Response: headers: CaseInsensitiveDict[str] raw: Any url: str - encoding: str + encoding: str | None history: list[Response] reason: str cookies: RequestsCookieJar