[pgp] Fix pyright errors

This commit is contained in:
Philipp Hörist
2026-01-02 21:44:08 +01:00
parent 99e33d9a1f
commit 67e7b24ce2
2 changed files with 3 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ class PGP(metaclass=Singleton):
if result.ok:
error = ""
else:
error = result.status
error = result.status or "Unknown"
return self._strip_header_footer(str(result)), error

View File

@@ -105,6 +105,7 @@ class SearchKeys(StatusHandler, list[dict[Any, Any]]):
class ListKeys(SearchKeys):
UID_INDEX: int = ...
FIELDS: list[str] = ...
fingerprints: list[str] = ...
def __init__(self, gpg: GPG) -> None: ...
def key(self, args: Any) -> None: ...
sec: Any = ...
@@ -159,6 +160,7 @@ class TrustResult(DeleteResult): ...
class Sign(StatusHandler, TextHandler):
returncode: int | None = ...
status: str = ...
def __init__(self, gpg: GPG) -> None: ...
def __nonzero__(self) -> bool: ...
def __bool__(self) -> bool: ...