Fix typos in code and comments (#1115)

This commit is contained in:
Wu Clan
2026-03-19 11:50:43 +08:00
committed by GitHub
parent dcb68698e5
commit 2866fc45b1
6 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class OperaLogCipherType(IntEnum):
aes = 0
md5 = 1
itsdangerous = 2
plan = 3
plain = 3
class StatusType(IntEnum):
+1 -1
View File
@@ -54,7 +54,7 @@ class I18n:
case 'json':
self.locales[lang] = json.loads(f.read())
case 'yaml' | 'yml':
self.locales[lang] = yaml.full_load(f.read())
self.locales[lang] = yaml.safe_load(f.read())
def t(self, key: str, default: Any | None = None, **kwargs) -> str:
"""