summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilthans <gilthans@gmail.com>2022-08-29 15:11:14 +0300
committerGilthans <gilthans@gmail.com>2022-08-29 15:11:14 +0300
commite4f8cd2254cbb500e5ab9eb38aae94f863d261ad (patch)
treebf4177617984e286483caeb9a7cc7d9d69ba3806
parentc97f475189c4416489458281a62cb9f80efdd01b (diff)
downloadnatsort-e4f8cd2254cbb500e5ab9eb38aae94f863d261ad.tar.gz
Fixed locale string mypy issue
-rw-r--r--natsort/compat/locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/natsort/compat/locale.py b/natsort/compat/locale.py
index 66280e5..53080c3 100644
--- a/natsort/compat/locale.py
+++ b/natsort/compat/locale.py
@@ -41,7 +41,7 @@ try: # noqa: C901
language_code, encoding = getlocale()
if language_code is None or encoding is None: # pragma: no cover
return cast(str, icu.Locale())
- return icu.Locale(f"{language_code}.{encoding}")
+ return cast(str, icu.Locale(f"{language_code}.{encoding}"))
def get_strxfrm() -> TrxfmFunc:
return cast(TrxfmFunc, icu.Collator.createInstance(get_icu_locale()).getSortKey)