[ty] Sync vendored typeshed stubs (#22324)

Co-authored-by: typeshedbot <>
This commit is contained in:
github-actions[bot]
2026-01-01 02:59:55 +00:00
committed by GitHub
parent 9677364847
commit 295ae836fd
7 changed files with 1 additions and 46 deletions

View File

@@ -1 +1 @@
91756673d95f0bd5ba51f6ec2bcb2cbb8e798c27
d1d5fe58664b30a0c2dde3cd5c3dc8091f0f16ae

View File

@@ -116,17 +116,13 @@ if sys.platform == "win32":
if sys.version_info >= (3, 14):
class _WindowsSelectorEventLoopPolicy(events._BaseDefaultEventLoopPolicy):
_loop_factory: ClassVar[type[SelectorEventLoop]]
"""Windows version of selector event loop."""
class _WindowsProactorEventLoopPolicy(events._BaseDefaultEventLoopPolicy):
_loop_factory: ClassVar[type[ProactorEventLoop]]
"""Windows version of proactor event loop using IOCP."""
else:
class WindowsSelectorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
_loop_factory: ClassVar[type[SelectorEventLoop]]
"""Windows version of selector event loop."""
def get_child_watcher(self) -> NoReturn:
"""Get the watcher for child processes."""
@@ -135,8 +131,6 @@ if sys.platform == "win32":
class WindowsProactorEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
_loop_factory: ClassVar[type[ProactorEventLoop]]
"""Windows version of proactor event loop using IOCP."""
def get_child_watcher(self) -> NoReturn:
"""Get the watcher for child processes."""

View File

@@ -46,9 +46,6 @@ if sys.version_info >= (3, 14):
class InterpreterPoolExecutor(ThreadPoolExecutor):
BROKEN: type[BrokenInterpreterPool]
"""
Raised when a worker thread in an InterpreterPoolExecutor failed initializing.
"""
@overload # type: ignore[override]
@classmethod

View File

@@ -96,9 +96,6 @@ class BrokenThreadPool(BrokenExecutor):
class ThreadPoolExecutor(Executor):
if sys.version_info >= (3, 14):
BROKEN: type[BrokenThreadPool]
"""
Raised when a worker thread in a ThreadPoolExecutor failed initializing.
"""
_max_workers: int
_idle_semaphore: Semaphore

View File

@@ -636,27 +636,7 @@ class SSLContext(_SSLContext):
# However, the docs explicitly state that it's OK to override these attributes on instances,
# so making these ClassVars wouldn't be appropriate
sslobject_class: type[SSLObject]
"""This class implements an interface on top of a low-level SSL object as
implemented by OpenSSL. This object captures the state of an SSL connection
but does not provide any network IO itself. IO needs to be performed
through separate "BIO" objects which are OpenSSL's IO abstraction layer.
This class does not have a public constructor. Instances are returned by
``SSLContext.wrap_bio``. This class is typically used by framework authors
that want to implement asynchronous IO for SSL through memory buffers.
When compared to ``SSLSocket``, this object lacks the following features:
* Any form of network IO, including methods such as ``recv`` and ``send``.
* The ``do_handshake_on_connect`` and ``suppress_ragged_eofs`` machinery.
"""
sslsocket_class: type[SSLSocket]
"""This class implements a subtype of socket.socket that wraps
the underlying OS socket in an SSL context when necessary, and
provides read and write methods over that channel.
"""
keylog_filename: str
post_handshake_auth: bool
if sys.version_info >= (3, 10):

View File

@@ -126,13 +126,6 @@ class TarFile:
fileobj: _Fileobj | None
format: _TarFormat | None
tarinfo: type[TarInfo]
"""Informational class which holds the details about an
archive member given by a tar header block.
TarInfo objects are returned by TarFile.getmember(),
TarFile.getmembers() and TarFile.gettarinfo() and are
usually created internally.
"""
dereference: bool | None
ignore_zeros: bool | None
encoding: str | None

View File

@@ -2294,12 +2294,6 @@ class Tk(Misc, Wm):
.CLASSNAME.py if such a file exists in the home directory.
"""
report_callback_exception: Callable[[type[BaseException], BaseException, TracebackType | None], object]
"""Report callback exception on sys.stderr.
Applications may want to override this internal function, and
should when sys.stderr is None.
"""
# Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
# Please keep in sync with _tkinter.TkappType.
# Some methods are intentionally missing because they are inherited from Misc instead.