mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix default parameter syntax.
Use 'x:bool = ...' instead of 'x:bool = True' or 'x:bool = False'.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user