mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
Fix threading.Thread argument context type (#15579)
This commit is contained in:
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user