style: format all Python files with Black
Apply Black formatter to the entire codebase for consistent code style. Co-Authored-By: Claude (glm-5) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
使用 python-dotenv 加载 .env 文件,并提供类型转换功能。
|
||||
"""
|
||||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Any, Optional, Type, TypeVar
|
||||
@@ -111,7 +112,9 @@ def set_env(key: str, value: Any) -> None:
|
||||
os.environ[key] = str(value)
|
||||
|
||||
|
||||
def save_env_file(env_file: Optional[str] = None, env_dict: Optional[dict] = None) -> bool:
|
||||
def save_env_file(
|
||||
env_file: Optional[str] = None, env_dict: Optional[dict] = None
|
||||
) -> bool:
|
||||
"""
|
||||
保存环境变量到 .env 文件
|
||||
|
||||
|
||||
Reference in New Issue
Block a user