Complete passpy stubs (#8959)

This commit is contained in:
Nikita Sobolev
2022-11-01 14:37:21 +03:00
committed by GitHub
parent 62ddebb65c
commit a7cf6144de
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
passpy.__main__
# Uses `git` dependency:
passpy.git
# Uses `gpg` dependency:
passpy.gpg

View File

@@ -1 +1,4 @@
version = "1.0.*"
[tool.stubtest]
ignore_missing_stub = false

View File

@@ -1 +1,13 @@
from collections.abc import Callable
from typing import Any, TypeVar
_C = TypeVar("_C", bound=Callable[..., Any])
# Technically, the first argument of `_C` must be `Store`,
# 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 copy_move(
src: str, dst: str, force: bool = ..., move: bool = ..., interactive: bool = ..., verbose: bool = ...
) -> str | None: ...