Skip to content

Commit c5e47fa

Browse files
authored
Fix threading.Thread argument context type (#15579)
1 parent ccf9411 commit c5e47fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/threading.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import sys
33
from _thread import _ExceptHookArgs, get_native_id as get_native_id
44
from _typeshed import ProfileFunction, TraceFunction
55
from collections.abc import Callable, Iterable, Mapping
6-
from contextvars import ContextVar
6+
from contextvars import Context
77
from types import TracebackType
88
from typing import Any, Final, TypeVar, final
99
from typing_extensions import deprecated
@@ -87,7 +87,7 @@ class Thread:
8787
kwargs: Mapping[str, Any] | None = None,
8888
*,
8989
daemon: bool | None = None,
90-
context: ContextVar[Any] | None = None,
90+
context: Context | None = None,
9191
) -> None: ...
9292
else:
9393
def __init__(

0 commit comments

Comments
 (0)