mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-13 08:28:54 +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:
1 parent
2217ac8a8c
commit
3128c6afbf
1 file changed
+1
-1
@@ -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