diff --git a/MANIFEST.in b/MANIFEST.in index a4e0ee4..27d7981 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,6 +2,7 @@ include LICENSE include CHANGELOG.md include tox.ini include RELEASING.md +recursive-include mypy_stubs *.pyi graft dev graft docs graft natsort diff --git a/mypy_stubs/icu.pyi b/mypy_stubs/icu.pyi index be46c19..f7ac204 100644 --- a/mypy_stubs/icu.pyi +++ b/mypy_stubs/icu.pyi @@ -1,6 +1,5 @@ -from __future__ import annotations - from typing import overload + @overload def Locale() -> str: ... @overload diff --git a/natsort/compat/locale.py b/natsort/compat/locale.py index 8d7ae48..d802194 100644 --- a/natsort/compat/locale.py +++ b/natsort/compat/locale.py @@ -54,7 +54,6 @@ def get_decimal_point() -> str: sep = icu.DecimalFormatSymbols.kDecimalSeparatorSymbol return icu.DecimalFormatSymbols(get_icu_locale()).getSymbol(sep) - except ImportError: import locale from locale import strxfrm diff --git a/natsort/natsort.py b/natsort/natsort.py index f649500..2038f3e 100644 --- a/natsort/natsort.py +++ b/natsort/natsort.py @@ -691,7 +691,6 @@ def os_sort_keygen( lambda x: tuple(map(_winsort_key, _split_apply(x, key))), ) - else: # For UNIX-based platforms, ICU performs MUCH better than locale