diff --git a/stdlib/3/http/client.pyi b/stdlib/3/http/client.pyi index 6a55f5c5f..f3f48402b 100644 --- a/stdlib/3/http/client.pyi +++ b/stdlib/3/http/client.pyi @@ -87,6 +87,8 @@ if sys.version_info >= (3, 5): closed = ... # type: bool status = ... # type: int reason = ... # type: str + def __init__(self, sock, debuglevel: int = ..., + method: Optional[str] = ..., url: Optional[str] = ...) -> None: ... def read(self, amt: Optional[int] = ...) -> bytes: ... def readinto(self, b: bytearray) -> int: ... @overload @@ -95,6 +97,7 @@ if sys.version_info >= (3, 5): def getheader(self, name: str, default: _T) -> Union[str, _T]: ... def getheaders(self) -> List[Tuple[str, str]]: ... def fileno(self) -> int: ... + def isclosed(self): bool def __iter__(self) -> Iterator[bytes]: ... def __enter__(self) -> 'HTTPResponse': ... def __exit__(self, exc_type: Optional[type],