Bump black to 23.1.0 (#9647)

This commit is contained in:
Alex Waygood
2023-02-01 14:06:04 +00:00
committed by GitHub
parent 7cd7ae46c0
commit 8e7b78a8e8
24 changed files with 11 additions and 55 deletions

View File

@@ -55,7 +55,6 @@ INTERNAL_ERROR: int # undocumented
class Error(Exception): ...
class ProtocolError(Error):
url: str
errcode: int
errmsg: str
@@ -65,7 +64,6 @@ class ProtocolError(Error):
class ResponseError(Error): ...
class Fault(Error):
faultCode: int
faultString: str
def __init__(self, faultCode: int, faultString: str, **extra: Any) -> None: ...
@@ -77,7 +75,6 @@ def _iso8601_format(value: datetime) -> str: ... # undocumented
def _strftime(value: _XMLDate) -> str: ... # undocumented
class DateTime:
value: str # undocumented
def __init__(self, value: int | str | datetime | time.struct_time | tuple[int, ...] = 0) -> None: ...
def __lt__(self, other: _DateTimeComparable) -> bool: ...
@@ -94,7 +91,6 @@ def _datetime(data: Any) -> DateTime: ... # undocumented
def _datetime_type(data: str) -> datetime: ... # undocumented
class Binary:
data: bytes
def __init__(self, data: bytes | bytearray | None = None) -> None: ...
def decode(self, data: ReadableBuffer) -> None: ...
@@ -137,7 +133,6 @@ class Marshaller:
def dump_instance(self, value: object, write: _WriteCallback) -> None: ...
class Unmarshaller:
dispatch: dict[str, Callable[[Unmarshaller, str], None]]
_type: str | None
@@ -174,7 +169,6 @@ class Unmarshaller:
def end_methodName(self, data: str) -> None: ...
class _MultiCallMethod: # undocumented
__call_list: list[tuple[str, tuple[_Marshallable, ...]]]
__name: str
def __init__(self, call_list: list[tuple[str, _Marshallable]], name: str) -> None: ...
@@ -182,13 +176,11 @@ class _MultiCallMethod: # undocumented
def __call__(self, *args: _Marshallable) -> None: ...
class MultiCallIterator: # undocumented
results: list[list[_Marshallable]]
def __init__(self, results: list[list[_Marshallable]]) -> None: ...
def __getitem__(self, i: int) -> _Marshallable: ...
class MultiCall:
__server: ServerProxy
__call_list: list[tuple[str, tuple[_Marshallable, ...]]]
def __init__(self, server: ServerProxy) -> None: ...
@@ -215,12 +207,10 @@ def gzip_encode(data: ReadableBuffer) -> bytes: ... # undocumented
def gzip_decode(data: ReadableBuffer, max_decode: int = ...) -> bytes: ... # undocumented
class GzipDecodedResponse(gzip.GzipFile): # undocumented
io: BytesIO
def __init__(self, response: SupportsRead[ReadableBuffer]) -> None: ...
class _Method: # undocumented
__send: Callable[[str, tuple[_Marshallable, ...]], _Marshallable]
__name: str
def __init__(self, send: Callable[[str, tuple[_Marshallable, ...]], _Marshallable], name: str) -> None: ...
@@ -228,7 +218,6 @@ class _Method: # undocumented
def __call__(self, *args: _Marshallable) -> _Marshallable: ...
class Transport:
user_agent: str
accept_gzip_encoding: bool
encode_threshold: int | None
@@ -264,7 +253,6 @@ class Transport:
def parse_response(self, response: http.client.HTTPResponse) -> tuple[_Marshallable, ...]: ...
class SafeTransport(Transport):
if sys.version_info >= (3, 8):
def __init__(
self,
@@ -282,7 +270,6 @@ class SafeTransport(Transport):
def make_connection(self, host: _HostType) -> http.client.HTTPSConnection: ...
class ServerProxy:
__host: str
__handler: str
__transport: Transport

View File

@@ -36,7 +36,6 @@ def resolve_dotted_attribute(obj: Any, attr: str, allow_dotted_names: bool = Tru
def list_public_methods(obj: Any) -> list[str]: ... # undocumented
class SimpleXMLRPCDispatcher: # undocumented
funcs: dict[str, _DispatchProtocol]
instance: Any | None
allow_none: bool
@@ -70,7 +69,6 @@ class SimpleXMLRPCRequestHandler(http.server.BaseHTTPRequestHandler):
def report_404(self) -> None: ...
class SimpleXMLRPCServer(socketserver.TCPServer, SimpleXMLRPCDispatcher):
_send_traceback_handler: bool
def __init__(
self,
@@ -84,7 +82,6 @@ class SimpleXMLRPCServer(socketserver.TCPServer, SimpleXMLRPCDispatcher):
) -> None: ...
class MultiPathXMLRPCServer(SimpleXMLRPCServer): # undocumented
dispatchers: dict[str, SimpleXMLRPCDispatcher]
def __init__(
self,
@@ -119,7 +116,6 @@ class ServerHTMLDoc(pydoc.HTMLDoc): # undocumented
def docserver(self, server_name: str, package_documentation: str, methods: dict[str, str]) -> str: ...
class XMLRPCDocGenerator: # undocumented
server_name: str
server_documentation: str
server_title: str