From 22dfbe1d20cb3f7d551bdc55d8988636f6790712 Mon Sep 17 00:00:00 2001 From: donbarbos Date: Sat, 10 Jan 2026 15:42:31 +0400 Subject: [PATCH] [http.client] Specify HTTPResponse.info --- stdlib/http/client.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/http/client.pyi b/stdlib/http/client.pyi index 7357fea6530f..1ae63c76bf3a 100644 --- a/stdlib/http/client.pyi +++ b/stdlib/http/client.pyi @@ -161,7 +161,7 @@ class HTTPResponse(io.BufferedIOBase, BinaryIO): # type: ignore[misc] # incomp self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: types.TracebackType | None ) -> None: ... @deprecated("Deprecated since Python 3.9. Use `HTTPResponse.headers` attribute instead.") - def info(self) -> email.message.Message: ... + def info(self) -> HTTPMessage: ... @deprecated("Deprecated since Python 3.9. Use `HTTPResponse.url` attribute instead.") def geturl(self) -> str: ... @deprecated("Deprecated since Python 3.9. Use `HTTPResponse.status` attribute instead.")