Skip to content

Commit 22dfbe1

Browse files
committed
[http.client] Specify HTTPResponse.info
1 parent e213e04 commit 22dfbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/http/client.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class HTTPResponse(io.BufferedIOBase, BinaryIO): # type: ignore[misc] # incomp
161161
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: types.TracebackType | None
162162
) -> None: ...
163163
@deprecated("Deprecated since Python 3.9. Use `HTTPResponse.headers` attribute instead.")
164-
def info(self) -> email.message.Message: ...
164+
def info(self) -> HTTPMessage: ...
165165
@deprecated("Deprecated since Python 3.9. Use `HTTPResponse.url` attribute instead.")
166166
def geturl(self) -> str: ...
167167
@deprecated("Deprecated since Python 3.9. Use `HTTPResponse.status` attribute instead.")

0 commit comments

Comments
 (0)