mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 13:33:59 +08:00
[http.client] Update HTTPResponse.info (#15248)
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user