Reformat with ruff format
This commit is contained in:
@@ -29,13 +29,11 @@ class _ReadableFile(Protocol):
|
||||
def read(self, size: int) -> bytes: ...
|
||||
|
||||
class StatusHandler:
|
||||
|
||||
on_data_failure: Exception | None = ...
|
||||
def __init__(self, gpg: GPG) -> None: ...
|
||||
def handle_status(self, key: str, value: str) -> None: ...
|
||||
|
||||
class Verify(StatusHandler):
|
||||
|
||||
TRUST_EXPIRED: int = ...
|
||||
TRUST_UNDEFINED: int = ...
|
||||
TRUST_NEVER: int = ...
|
||||
@@ -74,7 +72,6 @@ class ImportResultDict(TypedDict):
|
||||
text: str
|
||||
|
||||
class ImportResult(StatusHandler):
|
||||
|
||||
counts: list[str] = ...
|
||||
returncode: int | None = ...
|
||||
results: list[ImportResultDict]
|
||||
@@ -92,12 +89,10 @@ ESCAPE_PATTERN: re.Pattern[Any] = ...
|
||||
BASIC_ESCAPES: dict[str, str] = ...
|
||||
|
||||
class SendResult(StatusHandler):
|
||||
|
||||
returncode: int | None = ...
|
||||
def handle_status(self, key: str, value: str) -> None: ...
|
||||
|
||||
class SearchKeys(StatusHandler, list[dict[Any, Any]]):
|
||||
|
||||
UID_INDEX: int = ...
|
||||
FIELDS: list[str] = ...
|
||||
returncode: int | None = ...
|
||||
@@ -108,7 +103,6 @@ class SearchKeys(StatusHandler, list[dict[Any, Any]]):
|
||||
def handle_status(self, key: str, value: str) -> None: ...
|
||||
|
||||
class ListKeys(SearchKeys):
|
||||
|
||||
UID_INDEX: int = ...
|
||||
FIELDS: list[str] = ...
|
||||
def __init__(self, gpg: GPG) -> None: ...
|
||||
@@ -126,7 +120,6 @@ class ScanKeys(ListKeys):
|
||||
class TextHandler: ...
|
||||
|
||||
class Crypt(Verify, TextHandler):
|
||||
|
||||
data: bytes
|
||||
ok: bool
|
||||
status_detail: str
|
||||
@@ -137,7 +130,6 @@ class Crypt(Verify, TextHandler):
|
||||
def handle_status(self, key: str, value: str) -> None: ...
|
||||
|
||||
class GenKey(StatusHandler):
|
||||
|
||||
returncode: int | None = ...
|
||||
def __init__(self, gpg: GPG) -> None: ...
|
||||
def __nonzero__(self) -> bool: ...
|
||||
@@ -145,7 +137,6 @@ class GenKey(StatusHandler):
|
||||
def handle_status(self, key: str, value: str) -> None: ...
|
||||
|
||||
class AddSubkey(StatusHandler):
|
||||
|
||||
returncode: int | None = ...
|
||||
def __init__(self, gpg: GPG) -> None: ...
|
||||
def __nonzero__(self) -> bool: ...
|
||||
@@ -156,7 +147,6 @@ class ExportResult(GenKey):
|
||||
def handle_status(self, key: str, value: str) -> None: ...
|
||||
|
||||
class DeleteResult(StatusHandler):
|
||||
|
||||
returncode: int | None = ...
|
||||
def __init__(self, gpg: GPG) -> None: ...
|
||||
|
||||
@@ -168,7 +158,6 @@ class DeleteResult(StatusHandler):
|
||||
class TrustResult(DeleteResult): ...
|
||||
|
||||
class Sign(StatusHandler, TextHandler):
|
||||
|
||||
returncode: int | None = ...
|
||||
def __init__(self, gpg: GPG) -> None: ...
|
||||
def __nonzero__(self) -> bool: ...
|
||||
@@ -188,7 +177,6 @@ HEX_DIGITS_RE: re.Pattern[Any] = ...
|
||||
PUBLIC_KEY_RE: re.Pattern[Any] = ...
|
||||
|
||||
class GPG:
|
||||
|
||||
error_map: None = ...
|
||||
decode_errors: str = ...
|
||||
buffer_size: int = ...
|
||||
|
||||
Reference in New Issue
Block a user