修正类型注解

This commit is contained in:
UnCLAS-Prommer
2026-03-13 16:14:54 +08:00
parent de39099cd9
commit e9badbc307

View File

@@ -1,6 +1,5 @@
from __future__ import annotations
from collections.abc import Iterator
from datetime import date, datetime
from decimal import Decimal
from functools import lru_cache
@@ -35,7 +34,7 @@ def tn(key: str, count: int | float, locale: str | None = None, **kwargs: object
return _get_manager().tn(key, count=count, locale=locale, **kwargs)
def use_locale(locale: str) -> Iterator[None]:
def use_locale(locale: str):
return _get_manager().use_locale(locale)