drop ellipsis assignments from module vars, classvars and instance attrs (#5914)

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
Oleg Höfling
2021-08-11 19:26:58 +02:00
committed by GitHub
parent 6c41e3cead
commit 64f481189f
34 changed files with 325 additions and 325 deletions

View File

@@ -97,7 +97,7 @@ class Marshaller:
dispatch: dict[
Type[Any], Callable[[Marshaller, Any, Callable[[str], Any]], None]
] = ... # TODO: Replace 'Any' with some kind of binding
] # TODO: Replace 'Any' with some kind of binding
memo: dict[Any, None]
data: None
@@ -122,7 +122,7 @@ class Marshaller:
class Unmarshaller:
dispatch: dict[str, Callable[[Unmarshaller, str], None]] = ...
dispatch: dict[str, Callable[[Unmarshaller, str], None]]
_type: str | None
_stack: list[_Marshallable]
@@ -212,9 +212,9 @@ class _Method: # undocumented
class Transport:
user_agent: str = ...
accept_gzip_encoding: bool = ...
encode_threshold: int | None = ...
user_agent: str
accept_gzip_encoding: bool
encode_threshold: int | None
_use_datetime: bool
_use_builtin_types: bool

View File

@@ -64,8 +64,8 @@ class SimpleXMLRPCDispatcher: # undocumented
class SimpleXMLRPCRequestHandler(http.server.BaseHTTPRequestHandler):
rpc_paths: Tuple[str, str] = ...
encode_threshold: int = ... # undocumented
rpc_paths: Tuple[str, str]
encode_threshold: int # undocumented
aepattern: Pattern[str] # undocumented
def accept_encodings(self) -> dict[str, float]: ...
def is_rpc_path_valid(self) -> bool: ...
@@ -76,8 +76,8 @@ class SimpleXMLRPCRequestHandler(http.server.BaseHTTPRequestHandler):
class SimpleXMLRPCServer(socketserver.TCPServer, SimpleXMLRPCDispatcher):
allow_reuse_address: bool = ...
_send_traceback_handler: bool = ...
allow_reuse_address: bool
_send_traceback_handler: bool
def __init__(
self,
addr: Tuple[str, int],