xi-keyring

simple and extensible alternative for gnome-keyring
git clone https://git.ce9e.org/xi-keyring.git

commit
b7a41a2b89d25c39c59db3315f99be7ff0dfb4c4
parent
b932f449ebc26cdf7c9432cdf6eaadf03cdee79b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2026-05-24 10:14
add assert to silence type errors

Diffstat

M xikeyring/prompt.py 3 +++

1 files changed, 3 insertions, 0 deletions


diff --git a/xikeyring/prompt.py b/xikeyring/prompt.py

@@ -11,6 +11,7 @@ class PinentryPrompt:
   11    11             stdout=subprocess.PIPE,
   12    12             stderr=subprocess.PIPE,
   13    13         )
   -1    14         assert self._proc.stdout
   14    15         resp = self._proc.stdout.readline()
   15    16         assert resp.startswith(b'OK')
   16    17 
@@ -34,6 +35,8 @@ class PinentryPrompt:
   34    35         return result.encode()
   35    36 
   36    37     def call(self, cmd: bytes) -> tuple[bool, list[bytes]]:
   -1    38         assert self._proc.stdin
   -1    39         assert self._proc.stdout
   37    40         self._proc.stdin.write(cmd + b'\n')
   38    41         self._proc.stdin.flush()
   39    42         resp = []