Fix several new-in-3.11 stubtest errors (#7973)

This commit is contained in:
Alex Waygood
2022-06-03 02:07:38 +01:00
committed by GitHub
parent cb9023988d
commit acc0167dc1
12 changed files with 195 additions and 85 deletions

View File

@@ -4,7 +4,7 @@ import socketserver
import sys
from collections.abc import Callable, Iterable, Mapping
from datetime import datetime
from typing import Any, Pattern, Protocol
from typing import Any, ClassVar, Pattern, Protocol
from typing_extensions import TypeAlias
from xmlrpc.client import Fault
@@ -68,8 +68,7 @@ class SimpleXMLRPCDispatcher: # undocumented
def _dispatch(self, method: str, params: Iterable[_Marshallable]) -> _Marshallable: ... # undocumented
class SimpleXMLRPCRequestHandler(http.server.BaseHTTPRequestHandler):
rpc_paths: tuple[str, str]
rpc_paths: ClassVar[tuple[str, ...]]
encode_threshold: int # undocumented
aepattern: Pattern[str] # undocumented
def accept_encodings(self) -> dict[str, float]: ...