mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
threading.ThreadError and threading.local are aliases from _thread (#11167)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import _thread
|
||||
import sys
|
||||
from _typeshed import ProfileFunction, TraceFunction
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
@@ -68,12 +69,8 @@ def stack_size(size: int = ...) -> int: ...
|
||||
|
||||
TIMEOUT_MAX: float
|
||||
|
||||
class ThreadError(Exception): ...
|
||||
|
||||
class local:
|
||||
def __getattribute__(self, __name: str) -> Any: ...
|
||||
def __setattr__(self, __name: str, __value: Any) -> None: ...
|
||||
def __delattr__(self, __name: str) -> None: ...
|
||||
ThreadError = _thread.error
|
||||
local = _thread._local
|
||||
|
||||
class Thread:
|
||||
name: str
|
||||
|
||||
Reference in New Issue
Block a user