mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add defaults for third-party stubs A-D (#9952)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import FileDescriptorOrPath
|
||||
from typing import Any
|
||||
|
||||
def main(template: FileDescriptorOrPath, data: FileDescriptorOrPath | None = ..., **kwargs: Any) -> str: ...
|
||||
def main(template: FileDescriptorOrPath, data: FileDescriptorOrPath | None = None, **kwargs: Any) -> str: ...
|
||||
def cli_main() -> None: ...
|
||||
|
||||
@@ -8,14 +8,14 @@ python3: Literal[True]
|
||||
|
||||
def unicode(x: str, y: str) -> str: ...
|
||||
def render(
|
||||
template: SupportsRead[str] | str | Sequence[tuple[str, str]] = ...,
|
||||
data: dict[str, Any] = ...,
|
||||
partials_path: StrPath | None = ...,
|
||||
partials_ext: str = ...,
|
||||
partials_dict: dict[str, str] = ...,
|
||||
padding: str = ...,
|
||||
def_ldel: str | None = ...,
|
||||
def_rdel: str | None = ...,
|
||||
scopes: MutableSequence[int] | None = ...,
|
||||
warn: bool = ...,
|
||||
template: SupportsRead[str] | str | Sequence[tuple[str, str]] = "",
|
||||
data: dict[str, Any] = {},
|
||||
partials_path: StrPath | None = ".",
|
||||
partials_ext: str = "mustache",
|
||||
partials_dict: dict[str, str] = {},
|
||||
padding: str = "",
|
||||
def_ldel: str | None = "{{",
|
||||
def_rdel: str | None = "}}",
|
||||
scopes: MutableSequence[int] | None = None,
|
||||
warn: bool = False,
|
||||
) -> str: ...
|
||||
|
||||
@@ -7,5 +7,5 @@ def l_sa_check(template: str, literal: str, is_standalone: bool) -> bool | None:
|
||||
def r_sa_check(template: str, tag_type: str, is_standalone: bool) -> bool: ... # undocumented
|
||||
def parse_tag(template: str, l_del: str | None, r_del: str | None) -> tuple[tuple[str, str], str]: ... # undocumented
|
||||
def tokenize(
|
||||
template: str, def_ldel: str | None = ..., def_rdel: str | None = ...
|
||||
template: str, def_ldel: str | None = "{{", def_rdel: str | None = "}}"
|
||||
) -> Iterator[tuple[str, str]]: ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user