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:
Jelle Zijlstra
2018-06-17 09:29:02 -07:00
committed by Ivan Levkivskyi
parent da8de48f6d
commit 3032fbdff1

View File

@@ -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