File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -46,3 +46,8 @@ if sys.version_info >= (3, 8):
46
46
47
47
if sys .version_info >= (3 , 12 ):
48
48
def daemon_threads_allowed () -> bool : ...
49
+
50
+ class _local :
51
+ def __getattribute__ (self , __name : str ) -> Any : ...
52
+ def __setattr__ (self , __name : str , __value : Any ) -> None : ...
53
+ def __delattr__ (self , __name : str ) -> None : ...
Original file line number Diff line number Diff line change
1
+ import _thread
1
2
import sys
2
3
from _typeshed import ProfileFunction , TraceFunction
3
4
from collections .abc import Callable , Iterable , Mapping
@@ -68,12 +69,8 @@ def stack_size(size: int = ...) -> int: ...
68
69
69
70
TIMEOUT_MAX : float
70
71
71
- class ThreadError (Exception ): ...
72
-
73
- class local :
74
- def __getattribute__ (self , __name : str ) -> Any : ...
75
- def __setattr__ (self , __name : str , __value : Any ) -> None : ...
76
- def __delattr__ (self , __name : str ) -> None : ...
72
+ ThreadError = _thread .error
73
+ local = _thread ._local
77
74
78
75
class Thread :
79
76
name : str
You can’t perform that action at this time.
0 commit comments