sourcery advice

This commit is contained in:
UnCLAS-Prommer
2026-03-13 16:14:09 +08:00
parent 7e2b509bf0
commit de39099cd9

View File

@@ -5,8 +5,6 @@ from string import Formatter
import json
_FORMATTER = Formatter()
from .exceptions import (
DuplicateTranslationKeyError,
InvalidLocaleError,
@@ -14,6 +12,7 @@ from .exceptions import (
LocaleNotFoundError,
)
_FORMATTER = Formatter()
DEFAULT_LOCALE = "zh-CN"
PLURAL_CATEGORIES = {"zero", "one", "two", "few", "many", "other"}
TranslationValue = str | dict[str, str]