summaryrefslogtreecommitdiff
path: root/ATRI/utils/yaml.py
diff options
context:
space:
mode:
authorLint Action <[email protected]>2021-05-04 06:29:07 +0000
committerLint Action <[email protected]>2021-05-04 06:29:07 +0000
commit8804f1e10d507ba293fafc77a7e93d3a84a5814b (patch)
treee107da61f76dfe64dfb96feb5e961bbc4bbd8d52 /ATRI/utils/yaml.py
parentea7f48011c34fdaec7e91af7eb373c8174e439e6 (diff)
downloadATRI-8804f1e10d507ba293fafc77a7e93d3a84a5814b.tar.gz
ATRI-8804f1e10d507ba293fafc77a7e93d3a84a5814b.tar.bz2
ATRI-8804f1e10d507ba293fafc77a7e93d3a84a5814b.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/utils/yaml.py')
-rw-r--r--ATRI/utils/yaml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/utils/yaml.py b/ATRI/utils/yaml.py
index 59e8992..1ad7377 100644
--- a/ATRI/utils/yaml.py
+++ b/ATRI/utils/yaml.py
@@ -3,8 +3,8 @@ import yaml
from pathlib import Path
-def load_yml(file: Path, encoding='utf-8') -> dict:
+def load_yml(file: Path, encoding="utf-8") -> dict:
"""加载 yml 文件"""
- with open(file, 'r', encoding=encoding) as f:
+ with open(file, "r", encoding=encoding) as f:
data = yaml.safe_load(f)
return data