From 4eddd45b777f9372f2c0d37f0988a81de021fda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 16 Jun 2024 14:19:59 +0200 Subject: [PATCH] [openpgp] Fix backend init --- openpgp/backend/pygpg.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openpgp/backend/pygpg.py b/openpgp/backend/pygpg.py index aaf1fa9..15b3b13 100644 --- a/openpgp/backend/pygpg.py +++ b/openpgp/backend/pygpg.py @@ -15,6 +15,7 @@ # along with OpenPGP Gajim Plugin. If not, see . import logging +from pathlib import Path import gnupg from nbxmpp.protocol import JID @@ -77,10 +78,10 @@ class KeyringItem: class PythonGnuPG(gnupg.GPG): - def __init__(self, jid, gnupghome): + def __init__(self, jid: str, gnupghome: Path) -> None: gnupg.GPG.__init__(self, gpgbinary='gpg', gnupghome=str(gnupghome)) - self._jid = jid.bare + self._jid = jid self._own_fingerprint = None @staticmethod