Skip to content

Commit 49e3558

Browse files
refactor: Remove unused attribute
1 parent 7b2c635 commit 49e3558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/thread/thread.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ParallelProcessing: ...
3333
HookFunction,
3434
)
3535
from typing_extensions import Generic, ParamSpec
36-
from typing import List, Callable, Optional, Union, Mapping, Sequence, Tuple, Generator
36+
from typing import List, Optional, Union, Mapping, Sequence, Tuple, Generator
3737

3838

3939
Threads: set['Thread'] = set()
@@ -57,7 +57,6 @@ class Thread(threading.Thread, Generic[_Target_P, _Target_T]):
5757

5858
# threading.Thread stuff
5959
_initialized: bool
60-
_run: Callable
6160

6261
def __init__(
6362
self,
@@ -272,6 +271,7 @@ def kill(self, yielding: bool = False, timeout: float = 5) -> bool:
272271
raise exceptions.ThreadNotRunningError()
273272

274273
self.status = 'Kill Scheduled'
274+
275275
res: int = ctypes.pythonapi.PyThreadState_SetAsyncExc(
276276
ctypes.c_long(self.ident), ctypes.py_object(SystemExit)
277277
)

0 commit comments

Comments
 (0)