mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
make http.client.HTTPResponse concrete in 3.4 (#2244)
Matches the implementation in https://github.com/python/cpython/blob/3.4/Lib/http/client.py#L308 The ignore works around python/mypy#5027 (commented further up in the 3.5 branch). Part of #1476.
This commit is contained in:
committed by
Ivan Levkivskyi
parent
da8de48f6d
commit
3032fbdff1
@@ -105,7 +105,7 @@ if sys.version_info >= (3, 5):
|
||||
exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[types.TracebackType]) -> bool: ...
|
||||
else:
|
||||
class HTTPResponse(BinaryIO):
|
||||
class HTTPResponse(io.RawIOBase, BinaryIO): # type: ignore
|
||||
msg = ... # type: HTTPMessage
|
||||
headers = ... # type: HTTPMessage
|
||||
version = ... # type: int
|
||||
|
||||
Reference in New Issue
Block a user