BS 0.1.0 修复错误

This commit is contained in:
2025-07-13 00:32:17 +08:00
parent 50ddf84c76
commit c7a2e18dd4
2 changed files with 4 additions and 4 deletions

View File

@@ -269,7 +269,7 @@ class global_lock_guard(lock_guard):
class thread_instance(threading.Thread):
def __init__(
self,
call: Action[None],
call: Action,
*,
is_del_join: bool = True,
**kwargs

View File

@@ -179,9 +179,9 @@ class ToolFile(BaseModel):
self.OriginFullPath = new_current_path
return self
def LoadAsJson(self) -> Any:
with open(self.OriginFullPath, 'r') as f:
json_data = json.load(f)
def LoadAsJson(self, encoding:str='utf-8', **kwargs) -> Any:
with open(self.OriginFullPath, 'r', encoding=encoding) as f:
json_data = json.load(f, **kwargs)
return json_data
def LoadAsCsv(self) -> pd.DataFrame:
with open(self.OriginFullPath, 'r') as f: