mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
Fixing flake8 E261 errors
This commit is contained in:
@@ -10,11 +10,11 @@ class HTTPError(URLError, addinfourl):
|
||||
headers = ... # type: Dict[str, str]
|
||||
|
||||
class Request(object):
|
||||
host = ... # type: str
|
||||
port = ... # type: str
|
||||
data = ... # type: str
|
||||
headers = ... # type: Dict[str, str]
|
||||
unverifiable = ... # type: bool
|
||||
host = ... # type: str
|
||||
port = ... # type: str
|
||||
data = ... # type: str
|
||||
headers = ... # type: Dict[str, str]
|
||||
unverifiable = ... # type: bool
|
||||
type = ...
|
||||
origin_req_host= ...
|
||||
unredirected_hdrs = ...
|
||||
@@ -48,7 +48,7 @@ def install_opener(opener): ...
|
||||
def build_opener(*handlers): ...
|
||||
|
||||
class BaseHandler:
|
||||
handler_order = ... # int
|
||||
handler_order = ... # int
|
||||
|
||||
def add_parent(self, parent) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
@@ -61,14 +61,14 @@ class HTTPDefaultErrorHandler(BaseHandler):
|
||||
def http_error_default(self, req, fp, code, msg, hdrs): ...
|
||||
|
||||
class HTTPRedirectHandler(BaseHandler):
|
||||
max_repeats = ... # int
|
||||
max_redirections = ... # int
|
||||
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): ...
|
||||
def http_error_303(self, req, fp, code, msg, headers): ...
|
||||
def http_error_307(self, req, fp, code, msg, headers): ...
|
||||
inf_msg = ... # type: str
|
||||
inf_msg = ... # type: str
|
||||
|
||||
|
||||
class ProxyHandler(BaseHandler):
|
||||
@@ -91,11 +91,11 @@ class AbstractBasicAuthHandler:
|
||||
def retry_http_basic_auth(self, host, req, realm): ...
|
||||
|
||||
class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
||||
auth_header = ... # type: str
|
||||
auth_header = ... # type: str
|
||||
def http_error_401(self, req, fp, code, msg, headers): ...
|
||||
|
||||
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
|
||||
auth_header = ... # type: str
|
||||
auth_header = ... # type: str
|
||||
def http_error_407(self, req, fp, code, msg, headers): ...
|
||||
|
||||
class AbstractDigestAuthHandler:
|
||||
@@ -109,13 +109,13 @@ class AbstractDigestAuthHandler:
|
||||
def get_entity_digest(self, data, chal): ...
|
||||
|
||||
class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
||||
auth_header = ... # str
|
||||
handler_order = ... # int
|
||||
auth_header = ... # str
|
||||
handler_order = ... # int
|
||||
def http_error_401(self, req, fp, code, msg, headers): ...
|
||||
|
||||
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
|
||||
auth_header = ... # str
|
||||
handler_order = ... # int
|
||||
auth_header = ... # str
|
||||
handler_order = ... # int
|
||||
def http_error_407(self, req, fp, code, msg, headers): ...
|
||||
|
||||
class AbstractHTTPHandler(BaseHandler):
|
||||
|
||||
Reference in New Issue
Block a user