Make GnuPG.public_keys docstring more complete

This commit is contained in:
Piotr F. Mieszkowski 2023-11-26 18:29:43 +01:00
parent aa8c353a05
commit 0fe5e6b3dc
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ def _build_command(key_home, *args, **kwargs):
def public_keys(keyhome, *, key_id=None):
"""List public keys from keyring KEYHOME."""
"""List public keys from keyring KEYHOME.
Returns a dict with fingerprints as keys and email as values."""
cmd = _build_command(keyhome, '--list-keys', '--with-colons')
if key_id is not None:
cmd.append(key_id)