Update locale.pyi for Python3.12 (#10274)

This commit is contained in:
Nikita Sobolev
2023-06-07 21:41:07 +03:00
committed by GitHub
parent 786bd22343
commit f10b5fb9b6
2 changed files with 9 additions and 3 deletions

View File

@@ -15,7 +15,6 @@ __all__ = [
"str",
"atof",
"atoi",
"format",
"format_string",
"currency",
"normalize",
@@ -32,6 +31,9 @@ __all__ = [
if sys.version_info >= (3, 11):
__all__ += ["getencoding"]
if sys.version_info < (3, 12):
__all__ += ["format"]
# This module defines a function "str()", which is why "str" can't be used
# as a type annotation or type alias.
from builtins import str as _str
@@ -123,7 +125,12 @@ def normalize(localename: _str) -> _str: ...
def resetlocale(category: int = ...) -> None: ...
def strcoll(__os1: _str, __os2: _str) -> int: ...
def strxfrm(__string: _str) -> _str: ...
def format(percent: _str, value: float | Decimal, grouping: bool = False, monetary: bool = False, *additional: Any) -> _str: ...
if sys.version_info < (3, 12):
def format(
percent: _str, value: float | Decimal, grouping: bool = False, monetary: bool = False, *additional: Any
) -> _str: ...
def format_string(f: _str, val: Any, grouping: bool = False, monetary: bool = False) -> _str: ...
def currency(val: float | Decimal, symbol: bool = True, grouping: bool = False, international: bool = False) -> _str: ...
def delocalize(string: _str) -> _str: ...

View File

@@ -78,7 +78,6 @@ inspect.__all__
inspect.getasyncgenlocals
inspect.getasyncgenstate
inspect.markcoroutinefunction
locale.format
logging.Logger.getChildren
logging.__all__
logging.getHandlerByName