Fix default parameter syntax.

Use 'x:bool = ...' instead of 'x:bool = True' or 'x:bool = False'.
This commit is contained in:
Matthias Kramm
2016-01-22 16:39:15 -08:00
parent c83f4b57c7
commit 25a3fac0fd
3 changed files with 17 additions and 17 deletions

View File

@@ -30,7 +30,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=False) -> None: ...
def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering:bool=...) -> None: ...
def begin(self): ...
def close(self): ...
def isclosed(self): ...
@@ -58,7 +58,7 @@ 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=False): ...
def getresponse(self, buffering:bool=...): ...
class HTTP:
debuglevel = ... # type: Any
@@ -67,7 +67,7 @@ class HTTP:
def getfile(self): ...
file = ... # type: Any
headers = ... # type: Any
def getreply(self, buffering=False): ...
def getreply(self, buffering:bool=...): ...
def close(self): ...
class HTTPSConnection(HTTPConnection):