Skip to content

Commit ec7a36a

Browse files
committed
Add type stub for locale.locasize
1 parent 5dd1959 commit ec7a36a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/locale.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ 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+
if sys.version_info >= (3, 10):
157+
def localize(string: _str, grouping: bool = False, monetary: bool = False) -> _str: ...
156158
def atof(string: _str, func: Callable[[_str], float] = ...) -> float: ...
157159
def atoi(string: _str) -> int: ...
158160
def str(val: float) -> _str: ...

0 commit comments

Comments
 (0)