mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 12:21:27 +08:00
Flake8 fixes (#2549)
* Fix over-indented continuation lines * Fix under-indented continuation lines * Fix whitespace around default operator problems * Limit line lengths * Fix inconsistent files
This commit is contained in:
committed by
Jelle Zijlstra
parent
f362cf47fa
commit
006a79220f
@@ -28,7 +28,7 @@ class HTTPResponse:
|
||||
chunk_left = ... # type: Any
|
||||
length = ... # type: Any
|
||||
will_close = ... # type: Any
|
||||
def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering: bool=...) -> None: ...
|
||||
def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering: bool = ...) -> None: ...
|
||||
def begin(self): ...
|
||||
def close(self): ...
|
||||
def isclosed(self): ...
|
||||
@@ -56,16 +56,16 @@ class HTTPConnection:
|
||||
def putheader(self, header, *values): ...
|
||||
def endheaders(self, message_body=None): ...
|
||||
def request(self, method, url, body=None, headers=...): ...
|
||||
def getresponse(self, buffering: bool=...): ...
|
||||
def getresponse(self, buffering: bool = ...): ...
|
||||
|
||||
class HTTP:
|
||||
debuglevel = ... # type: Any
|
||||
def __init__(self, host: str=..., port=None, strict=None) -> None: ...
|
||||
def __init__(self, host: str = ..., port=None, strict=None) -> None: ...
|
||||
def connect(self, host=None, port=None): ...
|
||||
def getfile(self): ...
|
||||
file = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
def getreply(self, buffering: bool=...): ...
|
||||
def getreply(self, buffering: bool = ...): ...
|
||||
def close(self): ...
|
||||
|
||||
class HTTPSConnection(HTTPConnection):
|
||||
@@ -79,7 +79,7 @@ class HTTPSConnection(HTTPConnection):
|
||||
class HTTPS(HTTP):
|
||||
key_file = ... # type: Any
|
||||
cert_file = ... # type: Any
|
||||
def __init__(self, host: str=..., port=None, key_file=None, cert_file=None, strict=None, context=None) -> None: ...
|
||||
def __init__(self, host: str = ..., port=None, key_file=None, cert_file=None, strict=None, context=None) -> None: ...
|
||||
|
||||
class HTTPException(Exception): ...
|
||||
class NotConnected(HTTPException): ...
|
||||
|
||||
Reference in New Issue
Block a user