We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
threading.Thread
context
1 parent ccf9411 commit 3072822Copy full SHA for 3072822
stdlib/threading.pyi
@@ -3,7 +3,7 @@ import sys
3
from _thread import _ExceptHookArgs, get_native_id as get_native_id
4
from _typeshed import ProfileFunction, TraceFunction
5
from collections.abc import Callable, Iterable, Mapping
6
-from contextvars import ContextVar
+from contextvars import Context
7
from types import TracebackType
8
from typing import Any, Final, TypeVar, final
9
from typing_extensions import deprecated
@@ -87,7 +87,7 @@ class Thread:
87
kwargs: Mapping[str, Any] | None = None,
88
*,
89
daemon: bool | None = None,
90
- context: ContextVar[Any] | None = None,
+ context: Context | None = None,
91
) -> None: ...
92
else:
93
def __init__(
0 commit comments