[pgp] Fix pyright errors
This commit is contained in:
@@ -59,7 +59,7 @@ class PGP(metaclass=Singleton):
|
|||||||
if result.ok:
|
if result.ok:
|
||||||
error = ""
|
error = ""
|
||||||
else:
|
else:
|
||||||
error = result.status
|
error = result.status or "Unknown"
|
||||||
|
|
||||||
return self._strip_header_footer(str(result)), error
|
return self._strip_header_footer(str(result)), error
|
||||||
|
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ class SearchKeys(StatusHandler, list[dict[Any, Any]]):
|
|||||||
class ListKeys(SearchKeys):
|
class ListKeys(SearchKeys):
|
||||||
UID_INDEX: int = ...
|
UID_INDEX: int = ...
|
||||||
FIELDS: list[str] = ...
|
FIELDS: list[str] = ...
|
||||||
|
fingerprints: list[str] = ...
|
||||||
def __init__(self, gpg: GPG) -> None: ...
|
def __init__(self, gpg: GPG) -> None: ...
|
||||||
def key(self, args: Any) -> None: ...
|
def key(self, args: Any) -> None: ...
|
||||||
sec: Any = ...
|
sec: Any = ...
|
||||||
@@ -159,6 +160,7 @@ class TrustResult(DeleteResult): ...
|
|||||||
|
|
||||||
class Sign(StatusHandler, TextHandler):
|
class Sign(StatusHandler, TextHandler):
|
||||||
returncode: int | None = ...
|
returncode: int | None = ...
|
||||||
|
status: str = ...
|
||||||
def __init__(self, gpg: GPG) -> None: ...
|
def __init__(self, gpg: GPG) -> None: ...
|
||||||
def __nonzero__(self) -> bool: ...
|
def __nonzero__(self) -> bool: ...
|
||||||
def __bool__(self) -> bool: ...
|
def __bool__(self) -> bool: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user