diff --git a/stubs/babel/babel/core.pyi b/stubs/babel/babel/core.pyi index ddd0df911265..09405ff1cf68 100644 --- a/stubs/babel/babel/core.pyi +++ b/stubs/babel/babel/core.pyi @@ -51,6 +51,8 @@ class Locale: @property def decimal_formats(self): ... @property + def compact_decimal_formats(self): ... + @property def currency_formats(self): ... @property def percent_formats(self): ... diff --git a/stubs/babel/babel/numbers.pyi b/stubs/babel/babel/numbers.pyi index c4b27a560328..0c837217f448 100644 --- a/stubs/babel/babel/numbers.pyi +++ b/stubs/babel/babel/numbers.pyi @@ -1,5 +1,7 @@ from typing import Any +from babel.core import Locale + long = int LC_NUMERIC: Any @@ -34,6 +36,9 @@ def get_decimal_quantum(precision): ... def format_decimal( number, format: Any | None = ..., locale=..., decimal_quantization: bool = ..., group_separator: bool = ... ): ... +def format_compact_decimal( + number: float, *, format_type: str = ..., locale: Locale | str | None = ..., fraction_digits: int = ... +) -> str: ... class UnknownCurrencyFormatError(KeyError): ...