mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
change ='' to :str=... in httplib
This commit is contained in:
@@ -62,7 +62,7 @@ class HTTPConnection:
|
||||
|
||||
class HTTP:
|
||||
debuglevel = ... # type: Any
|
||||
def __init__(self, host='', 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
|
||||
@@ -81,7 +81,7 @@ class HTTPSConnection(HTTPConnection):
|
||||
class HTTPS(HTTP):
|
||||
key_file = ... # type: Any
|
||||
cert_file = ... # type: Any
|
||||
def __init__(self, host='', 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