Annotate some missing http client and urllib APIs. (#2582)

This commit is contained in:
Gregory P. Smith
2018-11-12 12:54:57 -08:00
committed by Sebastian Rittau
parent c7b0e60032
commit cd4572e43c
4 changed files with 40 additions and 7 deletions

View File

@@ -46,6 +46,8 @@ class HTTPConnection:
timeout = ... # type: Any
source_address = ... # type: Any
sock = ... # type: Any
host: str = ...
port: int = ...
def __init__(self, host, port=None, strict=None, timeout=..., source_address=None) -> None: ...
def set_tunnel(self, host, port=None, headers=None): ...
def set_debuglevel(self, level): ...

View File

@@ -131,7 +131,7 @@ class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
class AbstractHTTPHandler(BaseHandler):
def __init__(self, debuglevel: int = ...) -> None: ...
def do_request_(self, request): ...
def do_open(self, http_class, req): ...
def do_open(self, http_class, req): ... # undocumented
class HTTPHandler(AbstractHTTPHandler):
def http_open(self, req): ...