mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 10:03:32 +08:00
Add defaults for third-party stubs A-D (#9952)
This commit is contained in:
@@ -37,12 +37,12 @@ class DockerfileParser:
|
||||
build_args: dict[str, str]
|
||||
def __init__(
|
||||
self,
|
||||
path: str | None = ...,
|
||||
cache_content: bool = ...,
|
||||
env_replace: bool = ...,
|
||||
parent_env: dict[str, str] | None = ...,
|
||||
fileobj: IO[str] | None = ...,
|
||||
build_args: dict[str, str] | None = ...,
|
||||
path: str | None = None,
|
||||
cache_content: bool = False,
|
||||
env_replace: bool = True,
|
||||
parent_env: dict[str, str] | None = None,
|
||||
fileobj: IO[str] | None = None,
|
||||
build_args: dict[str, str] | None = None,
|
||||
) -> None: ...
|
||||
lines: list[str]
|
||||
content: str
|
||||
|
||||
@@ -17,15 +17,18 @@ class WordSplitter:
|
||||
envs: Mapping[str, str] | None
|
||||
quotes: _Quotes | None
|
||||
escaped: bool
|
||||
def __init__(self, s: str, args: Mapping[str, str] | None = ..., envs: Mapping[str, str] | None = ...) -> None: ...
|
||||
def __init__(self, s: str, args: Mapping[str, str] | None = None, envs: Mapping[str, str] | None = None) -> None: ...
|
||||
def dequote(self) -> str: ...
|
||||
def split(self, maxsplit: int | None = ..., dequote: bool = ...) -> Generator[str | None, None, None]: ...
|
||||
def split(self, maxsplit: int | None = None, dequote: bool = True) -> Generator[str | None, None, None]: ...
|
||||
|
||||
def extract_key_values(
|
||||
env_replace: bool, args: Mapping[str, str], envs: Mapping[str, str], instruction_value: str
|
||||
) -> list[tuple[str, str]]: ...
|
||||
def get_key_val_dictionary(
|
||||
instruction_value: str, env_replace: bool = ..., args: Mapping[str, str] | None = ..., envs: Mapping[str, str] | None = ...
|
||||
instruction_value: str,
|
||||
env_replace: bool = False,
|
||||
args: Mapping[str, str] | None = None,
|
||||
envs: Mapping[str, str] | None = None,
|
||||
) -> dict[str, str]: ...
|
||||
|
||||
class Context:
|
||||
@@ -37,12 +40,12 @@ class Context:
|
||||
line_labels: Mapping[str, str]
|
||||
def __init__(
|
||||
self,
|
||||
args: MutableMapping[str, str] | None = ...,
|
||||
envs: MutableMapping[str, str] | None = ...,
|
||||
labels: MutableMapping[str, str] | None = ...,
|
||||
line_args: Mapping[str, str] | None = ...,
|
||||
line_envs: Mapping[str, str] | None = ...,
|
||||
line_labels: Mapping[str, str] | None = ...,
|
||||
args: MutableMapping[str, str] | None = None,
|
||||
envs: MutableMapping[str, str] | None = None,
|
||||
labels: MutableMapping[str, str] | None = None,
|
||||
line_args: Mapping[str, str] | None = None,
|
||||
line_envs: Mapping[str, str] | None = None,
|
||||
line_labels: Mapping[str, str] | None = None,
|
||||
) -> None: ...
|
||||
def set_line_value(self, context_type: _ContextType, value: Mapping[str, str]) -> None: ...
|
||||
def get_line_value(self, context_type: _ContextType) -> Mapping[str, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user