Misc. changes to help pytype parse typeshed (#382)

This commit is contained in:
alvarocaceres
2016-07-21 15:08:12 -05:00
committed by Matthias Kramm
parent 368c703078
commit e02332a787
5 changed files with 9 additions and 11 deletions

View File

@@ -61,8 +61,10 @@ class HTTPRedirectHandler(BaseHandler):
max_repeats = ... # int
max_redirections = ... # int
def redirect_request(self, req, fp, code, msg, headers, newurl): ...
def http_error_301(self, req, fp, code, msg, headers): ...
def http_error_302(self, req, fp, code, msg, headers): ...
http_error_301 = http_error_303 = http_error_307 = http_error_302
def http_error_303(self, req, fp, code, msg, headers): ...
def http_error_307(self, req, fp, code, msg, headers): ...
inf_msg = ... # type: str
@@ -120,12 +122,12 @@ class AbstractHTTPHandler(BaseHandler):
class HTTPHandler(AbstractHTTPHandler):
def http_open(self, req): ...
http_request = AbstractHTTPHandler.do_request_
def http_request(self, request): ...
class HTTPSHandler(AbstractHTTPHandler):
def __init__(self, debuglevel=0, context=None): ...
def https_open(self, req): ...
https_request = AbstractHTTPHandler.do_request_
def https_request(self, request): ...
class HTTPCookieProcessor(BaseHandler):
def __init__(self, cookiejar=None): ...