mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add default values for third-party stubs beginning with 'P' (#9957)
This commit is contained in:
@@ -5,26 +5,26 @@ from re import Match
|
||||
class Store:
|
||||
def __init__(
|
||||
self,
|
||||
gpg_bin: str = ...,
|
||||
git_bin: str = ...,
|
||||
store_dir: str = ...,
|
||||
use_agent: bool = ...,
|
||||
interactive: bool = ...,
|
||||
verbose: bool = ...,
|
||||
gpg_bin: str = "gpg2",
|
||||
git_bin: str = "git",
|
||||
store_dir: str = "~/.password-store",
|
||||
use_agent: bool = True,
|
||||
interactive: bool = False,
|
||||
verbose: bool = False,
|
||||
) -> None: ...
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def is_init(self) -> bool: ...
|
||||
def init_store(self, gpg_ids: None | str | list[str], path: StrPath | None = ...) -> None: ...
|
||||
def init_store(self, gpg_ids: None | str | list[str], path: StrPath | None = None) -> None: ...
|
||||
def init_git(self) -> None: ...
|
||||
def git(self, method: str, *args: object, **kwargs: object) -> None: ...
|
||||
def get_key(self, path: StrPath | None) -> str | None: ...
|
||||
def set_key(self, path: StrPath | None, key_data: str, force: bool = ...) -> None: ...
|
||||
def remove_path(self, path: StrPath, recursive: bool = ..., force: bool = ...) -> None: ...
|
||||
def set_key(self, path: StrPath | None, key_data: str, force: bool = False) -> None: ...
|
||||
def remove_path(self, path: StrPath, recursive: bool = False, force: bool = False) -> None: ...
|
||||
def gen_key(
|
||||
self, path: StrPath | None, length: int, symbols: bool = ..., force: bool = ..., inplace: bool = ...
|
||||
self, path: StrPath | None, length: int, symbols: bool = True, force: bool = False, inplace: bool = False
|
||||
) -> str | None: ...
|
||||
def copy_path(self, old_path: StrPath, new_path: StrPath, force: bool = ...) -> None: ...
|
||||
def move_path(self, old_path: StrPath, new_path: StrPath, force: bool = ...) -> None: ...
|
||||
def copy_path(self, old_path: StrPath, new_path: StrPath, force: bool = False) -> None: ...
|
||||
def move_path(self, old_path: StrPath, new_path: StrPath, force: bool = False) -> None: ...
|
||||
def list_dir(self, path: StrPath) -> tuple[list[str], list[str]]: ...
|
||||
def iter_dir(self, path: StrPath) -> Iterator[str]: ...
|
||||
def find(self, names: None | str | list[str]) -> list[str]: ...
|
||||
|
||||
@@ -7,7 +7,7 @@ _C = TypeVar("_C", bound=Callable[..., Any])
|
||||
# but for now we leave it simple:
|
||||
def initialised(func: _C) -> _C: ...
|
||||
def trap(path_index: str | int) -> Callable[[_C], _C]: ...
|
||||
def gen_password(length: int, symbols: bool = ...) -> str: ...
|
||||
def gen_password(length: int, symbols: bool = True) -> str: ...
|
||||
def copy_move(
|
||||
src: str, dst: str, force: bool = ..., move: bool = ..., interactive: bool = ..., verbose: bool = ...
|
||||
src: str, dst: str, force: bool = False, move: bool = False, interactive: bool = False, verbose: bool = False
|
||||
) -> str | None: ...
|
||||
|
||||
Reference in New Issue
Block a user