mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -4,7 +4,7 @@ import sys
|
||||
# as a type annotation or type alias.
|
||||
from builtins import str as _str
|
||||
from decimal import Decimal
|
||||
from typing import Any, Callable, Iterable, Mapping, Sequence, Tuple
|
||||
from typing import Any, Callable, Iterable, Mapping, Sequence
|
||||
|
||||
CODESET: int
|
||||
D_T_FMT: int
|
||||
@@ -82,7 +82,7 @@ class Error(Exception): ...
|
||||
def setlocale(category: int, locale: _str | Iterable[_str] | None = ...) -> _str: ...
|
||||
def localeconv() -> Mapping[_str, int | _str | list[int]]: ...
|
||||
def nl_langinfo(__key: int) -> _str: ...
|
||||
def getdefaultlocale(envvars: Tuple[_str, ...] = ...) -> tuple[_str | None, _str | None]: ...
|
||||
def getdefaultlocale(envvars: tuple[_str, ...] = ...) -> tuple[_str | None, _str | None]: ...
|
||||
def getlocale(category: int = ...) -> Sequence[_str]: ...
|
||||
def getpreferredencoding(do_setlocale: bool = ...) -> _str: ...
|
||||
def normalize(localename: _str) -> _str: ...
|
||||
|
||||
Reference in New Issue
Block a user