mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add sock attribute for http.client.HTTPConnection in Python 3. (#3429)
The equivalent httplib.HTTPConnection class already include it for Python 2, despite the attribute not being documented for either version.
This commit is contained in:
committed by
Sebastian Rittau
parent
cd5cd12a35
commit
616cb0bb65
@@ -129,6 +129,7 @@ class HTTPConnection:
|
||||
timeout: float
|
||||
host: str
|
||||
port: int
|
||||
sock: Any
|
||||
if sys.version_info >= (3, 7):
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user