mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add new functions for Babel 2.11.0 (#9091)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user