mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user