[http.client] Update HTTPResponse.info (#15248)

This commit is contained in:
Semyon Moroz
2026-01-10 23:28:44 +00:00
committed by GitHub
parent 98d6327550
commit 9d40875925
+1 -1
View File
@@ -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.")