Skip to content

Commit

Permalink
refactor: Remove unused attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Mar 8, 2024
1 parent 7b2c635 commit 49e3558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thread/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ParallelProcessing: ...
HookFunction,
)
from typing_extensions import Generic, ParamSpec
from typing import List, Callable, Optional, Union, Mapping, Sequence, Tuple, Generator
from typing import List, Optional, Union, Mapping, Sequence, Tuple, Generator


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

# threading.Thread stuff
_initialized: bool
_run: Callable

def __init__(
self,
Expand Down Expand Up @@ -272,6 +271,7 @@ def kill(self, yielding: bool = False, timeout: float = 5) -> bool:
raise exceptions.ThreadNotRunningError()

self.status = 'Kill Scheduled'

res: int = ctypes.pythonapi.PyThreadState_SetAsyncExc(
ctypes.c_long(self.ident), ctypes.py_object(SystemExit)
)
Expand Down

0 comments on commit 49e3558

Please sign in to comment.