mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -47,17 +47,17 @@ class Template(metaclass=_TemplateMetaclass):
|
||||
flags: ClassVar[RegexFlag]
|
||||
pattern: ClassVar[Pattern[str]]
|
||||
def __init__(self, template: str) -> None: ...
|
||||
def substitute(self, __mapping: Mapping[str, object] = {}, **kwds: object) -> str: ...
|
||||
def safe_substitute(self, __mapping: Mapping[str, object] = {}, **kwds: object) -> str: ...
|
||||
def substitute(self, mapping: Mapping[str, object] = {}, /, **kwds: object) -> str: ...
|
||||
def safe_substitute(self, mapping: Mapping[str, object] = {}, /, **kwds: object) -> str: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
def get_identifiers(self) -> list[str]: ...
|
||||
def is_valid(self) -> bool: ...
|
||||
|
||||
class Formatter:
|
||||
@overload
|
||||
def format(self, __format_string: LiteralString, *args: LiteralString, **kwargs: LiteralString) -> LiteralString: ...
|
||||
def format(self, format_string: LiteralString, /, *args: LiteralString, **kwargs: LiteralString) -> LiteralString: ...
|
||||
@overload
|
||||
def format(self, __format_string: str, *args: Any, **kwargs: Any) -> str: ...
|
||||
def format(self, format_string: str, /, *args: Any, **kwargs: Any) -> str: ...
|
||||
@overload
|
||||
def vformat(
|
||||
self, format_string: LiteralString, args: Sequence[LiteralString], kwargs: Mapping[LiteralString, LiteralString]
|
||||
|
||||
Reference in New Issue
Block a user