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