mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Update locale.pyi for Python3.12 (#10274)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -78,7 +78,6 @@ inspect.__all__
|
||||
inspect.getasyncgenlocals
|
||||
inspect.getasyncgenstate
|
||||
inspect.markcoroutinefunction
|
||||
locale.format
|
||||
logging.Logger.getChildren
|
||||
logging.__all__
|
||||
logging.getHandlerByName
|
||||
|
||||
Reference in New Issue
Block a user