diff options
Diffstat (limited to 'mypy_stubs/icu.pyi')
-rw-r--r-- | mypy_stubs/icu.pyi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mypy_stubs/icu.pyi b/mypy_stubs/icu.pyi new file mode 100644 index 0000000..f7ac204 --- /dev/null +++ b/mypy_stubs/icu.pyi @@ -0,0 +1,24 @@ +from typing import overload + +@overload +def Locale() -> str: ... +@overload +def Locale(x: str) -> str: ... + +class UCollAttribute: + NUMERIC_COLLATION: int + +class UCollAttributeValue: + ON: int + +class DecimalFormatSymbols: + kGroupingSeparatorSymbol: int + kDecimalSeparatorSymbol: int + def __init__(self, locale: str) -> None: ... + def getSymbol(self, symbol: int) -> str: ... + +class Collator: + @classmethod + def createInstance(cls, locale: str) -> Collator: ... + def getSortKey(self, source: str) -> bytes: ... + def setAttribute(self, attr: int, value: int) -> None: ... |