Skip to content

Commit 37dceef

Browse files
authored
Add locale.localize (#14970)
1 parent 4d7b6c6 commit 37dceef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/locale.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ if sys.version_info < (3, 12):
153153
def format_string(f: _str, val: Any, grouping: bool = False, monetary: bool = False) -> _str: ...
154154
def currency(val: float | Decimal, symbol: bool = True, grouping: bool = False, international: bool = False) -> _str: ...
155155
def delocalize(string: _str) -> _str: ...
156+
157+
if sys.version_info >= (3, 10):
158+
def localize(string: _str, grouping: bool = False, monetary: bool = False) -> _str: ...
159+
156160
def atof(string: _str, func: Callable[[_str], float] = ...) -> float: ...
157161
def atoi(string: _str) -> int: ...
158162
def str(val: float) -> _str: ...

0 commit comments

Comments
 (0)