Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion stdlib/http/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class HTTPConnection:
timeout: float | None
host: str
port: int
sock: Any
sock: socket | Any # can be `None` if `.connect()` was not called
def __init__(
self,
host: str,
Expand All @@ -180,6 +180,8 @@ class HTTPConnection:
def send(self, data: _DataType) -> None: ...

class HTTPSConnection(HTTPConnection):
# Can be `None` if `.connect()` was not called:
sock: ssl.SSLSocket | Any # type: ignore[override]
def __init__(
self,
host: str,
Expand Down