mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-01-24 20:12:13 +08:00
17 lines
396 B
Python
17 lines
396 B
Python
from decimal import Decimal
|
|
from typing import (
|
|
Optional,
|
|
Tuple,
|
|
Union,
|
|
)
|
|
|
|
|
|
def format(
|
|
number: Union[float, Decimal, str],
|
|
decimal_sep: str,
|
|
decimal_pos: Optional[int] = ...,
|
|
grouping: Union[Tuple[int, int, int, int, int], Tuple[int, int, int], int] = ...,
|
|
thousand_sep: str = ...,
|
|
force_grouping: bool = ...,
|
|
use_l10n: Optional[bool] = ...
|
|
) -> str: ... |