mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Complete passpy stubs (#8959)
This commit is contained in:
6
stubs/passpy/@tests/stubtest_allowlist.txt
Normal file
6
stubs/passpy/@tests/stubtest_allowlist.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
passpy.__main__
|
||||
|
||||
# Uses `git` dependency:
|
||||
passpy.git
|
||||
# Uses `gpg` dependency:
|
||||
passpy.gpg
|
||||
@@ -1 +1,4 @@
|
||||
version = "1.0.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user