Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ (#7363)

This commit is contained in:
Alex Waygood
2022-02-23 00:39:34 +00:00
committed by GitHub
parent 070bbb4fb9
commit 240628c4dd
5 changed files with 14 additions and 6 deletions

View File

@@ -43,7 +43,6 @@ else:
"wait_for",
"as_completed",
"sleep",
"async",
"gather",
"shield",
"ensure_future",

View File

@@ -5,7 +5,10 @@ import sys
from _typeshed import StrPath, SupportsRead, SupportsWrite
from typing import Any, AnyStr, BinaryIO, ClassVar, Mapping, Sequence
__all__ = ["HTTPServer", "ThreadingHTTPServer", "BaseHTTPRequestHandler", "SimpleHTTPRequestHandler", "CGIHTTPRequestHandler"]
if sys.version_info >= (3, 7):
__all__ = ["HTTPServer", "ThreadingHTTPServer", "BaseHTTPRequestHandler", "SimpleHTTPRequestHandler", "CGIHTTPRequestHandler"]
else:
__all__ = ["HTTPServer", "BaseHTTPRequestHandler", "SimpleHTTPRequestHandler", "CGIHTTPRequestHandler"]
class HTTPServer(socketserver.TCPServer):
server_name: str

View File

@@ -102,7 +102,6 @@ else:
"get_logger",
"get_start_method",
"log_to_stderr",
"parent_process",
"reducer",
"set_executable",
"set_forkserver_preload",

View File

@@ -105,11 +105,20 @@ if sys.version_info < (3, 9):
def writePlistToBytes(value: Mapping[str, Any]) -> bytes: ...
if sys.version_info < (3, 7):
class Dict(dict[str, Any]):
class _InternalDict(dict[str, Any]):
def __getattr__(self, attr: str) -> Any: ...
def __setattr__(self, attr: str, value: Any) -> None: ...
def __delattr__(self, attr: str) -> None: ...
class Dict(_InternalDict): # deprecated
def __init__(self, **kwargs: Any) -> None: ...
class Plist(_InternalDict): # deprecated
def __init__(self, **kwargs: Any) -> None: ...
@classmethod
def fromFile(cls: type[Self], pathOrFile: str | IO[bytes]) -> Self: ...
def write(self, pathOrFile: str | IO[bytes]) -> None: ...
if sys.version_info < (3, 9):
class Data:
data: bytes

View File

@@ -31,7 +31,6 @@ ipaddress._BaseNetwork.__init__
json.loads
mmap.ACCESS_DEFAULT
(os|posix).utime
plistlib.Dict.__init__
pyexpat.XMLParserType.ExternalEntityParserCreate # C signature is wrong - function gets only positional args
random.Random.randrange # missing undocumented arg _int
random.randrange # missing undocumented arg _int
@@ -121,7 +120,6 @@ html.parser.HTMLParser.unescape
platform.popen
plistlib.Data.asBase64
plistlib.Data.fromBase64
plistlib.Plist
ssl.SSLObject.verify_client_post_handshake
ssl.SSLSocket.verify_client_post_handshake
sys.callstats