mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +08:00
Misc. changes to help pytype parse typeshed (#382)
This commit is contained in:
committed by
Matthias Kramm
parent
368c703078
commit
e02332a787
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user