🎨 style: Format Code

This commit is contained in:
yyhhyyyyyy
2024-12-10 10:34:56 +08:00
parent 809d6cabbb
commit afd064e15d
17 changed files with 123 additions and 95 deletions

View File

@@ -1,5 +1,5 @@
import threading
from typing import Callable, Any, Dict
from typing import Any, Callable, Dict
class TaskManager:
@@ -33,7 +33,7 @@ class TaskManager:
try:
with self.lock:
self.current_tasks += 1
func(*args, **kwargs) # 在这里调用函数,传递*args和**kwargs
func(*args, **kwargs) # call the function here, passing *args and **kwargs.
finally:
self.task_done()