mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
# Generated by stubgen and manually massaged a bit.
|
||||
# Needs lots more work!
|
||||
|
||||
from typing import Any, Dict, Optional, Protocol
|
||||
import mimetools
|
||||
import ssl
|
||||
from typing import Any, Dict, Optional, Protocol
|
||||
|
||||
class HTTPMessage(mimetools.Message):
|
||||
def addcontinue(self, key: str, more: str) -> None: ...
|
||||
@@ -29,8 +29,9 @@ class HTTPResponse:
|
||||
chunk_left: Any
|
||||
length: Any
|
||||
will_close: Any
|
||||
def __init__(self, sock, debuglevel: int = ..., strict: int = ..., method: Optional[Any] = ...,
|
||||
buffering: bool = ...) -> None: ...
|
||||
def __init__(
|
||||
self, sock, debuglevel: int = ..., strict: int = ..., method: Optional[Any] = ..., buffering: bool = ...
|
||||
) -> None: ...
|
||||
def begin(self): ...
|
||||
def close(self): ...
|
||||
def isclosed(self): ...
|
||||
@@ -59,8 +60,9 @@ class HTTPConnection:
|
||||
sock: Any
|
||||
host: str = ...
|
||||
port: int = ...
|
||||
def __init__(self, host, port: Optional[Any] = ..., strict: Optional[Any] = ..., timeout=...,
|
||||
source_address: Optional[Any] = ...) -> None: ...
|
||||
def __init__(
|
||||
self, host, port: Optional[Any] = ..., strict: Optional[Any] = ..., timeout=..., source_address: Optional[Any] = ...
|
||||
) -> None: ...
|
||||
def set_tunnel(self, host, port: Optional[Any] = ..., headers: Optional[Any] = ...): ...
|
||||
def set_debuglevel(self, level): ...
|
||||
def connect(self): ...
|
||||
@@ -86,16 +88,32 @@ class HTTPSConnection(HTTPConnection):
|
||||
default_port: Any
|
||||
key_file: Any
|
||||
cert_file: Any
|
||||
def __init__(self, host, port: Optional[Any] = ..., key_file: Optional[Any] = ..., cert_file: Optional[Any] = ...,
|
||||
strict: Optional[Any] = ..., timeout=..., source_address: Optional[Any] = ...,
|
||||
context: Optional[Any] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
host,
|
||||
port: Optional[Any] = ...,
|
||||
key_file: Optional[Any] = ...,
|
||||
cert_file: Optional[Any] = ...,
|
||||
strict: Optional[Any] = ...,
|
||||
timeout=...,
|
||||
source_address: Optional[Any] = ...,
|
||||
context: Optional[Any] = ...,
|
||||
) -> None: ...
|
||||
sock: Any
|
||||
def connect(self): ...
|
||||
|
||||
class HTTPS(HTTP):
|
||||
key_file: Any
|
||||
cert_file: Any
|
||||
def __init__(self, host: str = ..., port: Optional[Any] = ..., key_file: Optional[Any] = ..., cert_file: Optional[Any] = ..., strict: Optional[Any] = ..., context: Optional[Any] = ...) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
host: str = ...,
|
||||
port: Optional[Any] = ...,
|
||||
key_file: Optional[Any] = ...,
|
||||
cert_file: Optional[Any] = ...,
|
||||
strict: Optional[Any] = ...,
|
||||
context: Optional[Any] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class HTTPException(Exception): ...
|
||||
class NotConnected(HTTPException): ...
|
||||
|
||||
Reference in New Issue
Block a user