format
This commit is contained in:
@@ -159,7 +159,6 @@ class TaskPool:
|
|||||||
self.lock: threading.RLock = threading.RLock()
|
self.lock: threading.RLock = threading.RLock()
|
||||||
self.pool: dict[UUID, BaseTask] = {}
|
self.pool: dict[UUID, BaseTask] = {}
|
||||||
|
|
||||||
|
|
||||||
def __getitem__(self, uuid: UUID) -> BaseTask:
|
def __getitem__(self, uuid: UUID) -> BaseTask:
|
||||||
with self.lock:
|
with self.lock:
|
||||||
return self.pool[uuid]
|
return self.pool[uuid]
|
||||||
|
|||||||
Reference in New Issue
Block a user