Fix threading.Thread argument context type (#15579)

This commit is contained in:
Jeremy Cantrell
2026-03-31 15:13:57 -04:00
committed by GitHub
parent ccf9411fb1
commit c5e47faeda
+2 -2
View File
@@ -3,7 +3,7 @@ import sys
from _thread import _ExceptHookArgs, get_native_id as get_native_id
from _typeshed import ProfileFunction, TraceFunction
from collections.abc import Callable, Iterable, Mapping
from contextvars import ContextVar
from contextvars import Context
from types import TracebackType
from typing import Any, Final, TypeVar, final
from typing_extensions import deprecated
@@ -87,7 +87,7 @@ class Thread:
kwargs: Mapping[str, Any] | None = None,
*,
daemon: bool | None = None,
context: ContextVar[Any] | None = None,
context: Context | None = None,
) -> None: ...
else:
def __init__(