mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add missing objects to plistlib, and improve __all__ in asyncio.tasks, http.server, & multiprocessing.__init__ (#7363)
This commit is contained in:
@@ -43,7 +43,6 @@ else:
|
||||
"wait_for",
|
||||
"as_completed",
|
||||
"sleep",
|
||||
"async",
|
||||
"gather",
|
||||
"shield",
|
||||
"ensure_future",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -102,7 +102,6 @@ else:
|
||||
"get_logger",
|
||||
"get_start_method",
|
||||
"log_to_stderr",
|
||||
"parent_process",
|
||||
"reducer",
|
||||
"set_executable",
|
||||
"set_forkserver_preload",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user