Skip to content

Commit a7cf614

Browse files
authored
Complete passpy stubs (#8959)
1 parent 62ddebb commit a7cf614

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
passpy.__main__
2+
3+
# Uses `git` dependency:
4+
passpy.git
5+
# Uses `gpg` dependency:
6+
passpy.gpg

stubs/passpy/METADATA.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
version = "1.0.*"
2+
3+
[tool.stubtest]
4+
ignore_missing_stub = false

stubs/passpy/passpy/util.pyi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1+
from collections.abc import Callable
2+
from typing import Any, TypeVar
3+
4+
_C = TypeVar("_C", bound=Callable[..., Any])
5+
6+
# Technically, the first argument of `_C` must be `Store`,
7+
# but for now we leave it simple:
8+
def initialised(func: _C) -> _C: ...
9+
def trap(path_index: str | int) -> Callable[[_C], _C]: ...
110
def gen_password(length: int, symbols: bool = ...) -> str: ...
11+
def copy_move(
12+
src: str, dst: str, force: bool = ..., move: bool = ..., interactive: bool = ..., verbose: bool = ...
13+
) -> str | None: ...

0 commit comments

Comments
 (0)