diff --git a/stdlib/asyncio/tasks.pyi b/stdlib/asyncio/tasks.pyi index 765fb67beefb..9acb96b91820 100644 --- a/stdlib/asyncio/tasks.pyi +++ b/stdlib/asyncio/tasks.pyi @@ -43,7 +43,6 @@ else: "wait_for", "as_completed", "sleep", - "async", "gather", "shield", "ensure_future", diff --git a/stdlib/http/server.pyi b/stdlib/http/server.pyi index 0512ab5f739f..53159b65ec14 100644 --- a/stdlib/http/server.pyi +++ b/stdlib/http/server.pyi @@ -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 diff --git a/stdlib/multiprocessing/__init__.pyi b/stdlib/multiprocessing/__init__.pyi index 979176c47a5e..e011349c5690 100644 --- a/stdlib/multiprocessing/__init__.pyi +++ b/stdlib/multiprocessing/__init__.pyi @@ -102,7 +102,6 @@ else: "get_logger", "get_start_method", "log_to_stderr", - "parent_process", "reducer", "set_executable", "set_forkserver_preload", diff --git a/stdlib/plistlib.pyi b/stdlib/plistlib.pyi index 3f19eeeb6fc5..67d1611de828 100644 --- a/stdlib/plistlib.pyi +++ b/stdlib/plistlib.pyi @@ -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 diff --git a/tests/stubtest_allowlists/py36.txt b/tests/stubtest_allowlists/py36.txt index 2b3413ea7ed8..1c70b102c2ea 100644 --- a/tests/stubtest_allowlists/py36.txt +++ b/tests/stubtest_allowlists/py36.txt @@ -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