Reformat with ruff format
This commit is contained in:
@@ -45,7 +45,6 @@ class ConfigBuilder(Gtk.Builder):
|
||||
|
||||
class PGPConfigDialog(GajimAppWindow):
|
||||
def __init__(self, plugin: PGPPlugin, transient: Gtk.Window) -> None:
|
||||
|
||||
GajimAppWindow.__init__(
|
||||
self,
|
||||
name="PGPConfigDialog",
|
||||
|
||||
@@ -50,7 +50,6 @@ class KeyDialog(GajimAppWindow):
|
||||
def __init__(
|
||||
self, plugin: PGPPlugin, account: str, jid: JID, transient: Gtk.Window
|
||||
) -> None:
|
||||
|
||||
GajimAppWindow.__init__(
|
||||
self,
|
||||
name="PGPKeyDialog",
|
||||
@@ -128,7 +127,6 @@ class ChooseGPGKeyDialog(GajimAppWindow):
|
||||
transient: Gtk.Window,
|
||||
callback: Callable[[tuple[str, str] | None], None],
|
||||
) -> None:
|
||||
|
||||
GajimAppWindow.__init__(
|
||||
self,
|
||||
name="PGPChooseKeyDialog",
|
||||
|
||||
@@ -213,7 +213,6 @@ class PGPLegacy(BaseModule):
|
||||
callback: Callable[[OutgoingMessage], None],
|
||||
always_trust: bool,
|
||||
) -> None:
|
||||
|
||||
text = message.get_text()
|
||||
assert text is not None
|
||||
|
||||
@@ -263,7 +262,6 @@ class PGPLegacy(BaseModule):
|
||||
def _raise_message_not_sent(
|
||||
client: Client, message: OutgoingMessage, error: str
|
||||
) -> None:
|
||||
|
||||
text = message.get_text()
|
||||
assert text is not None
|
||||
|
||||
|
||||
@@ -83,7 +83,6 @@ if BINARY is None or error:
|
||||
|
||||
|
||||
class PGPPlugin(GajimPlugin):
|
||||
|
||||
def init(self):
|
||||
self.description = _("PGP encryption as per XEP-0027")
|
||||
if error_msg:
|
||||
@@ -140,7 +139,6 @@ class PGPPlugin(GajimPlugin):
|
||||
|
||||
@staticmethod
|
||||
def _on_not_trusted(event: PGPNotTrusted) -> None:
|
||||
|
||||
def _on_response(response_id: str, do_not_ask_again: bool) -> None:
|
||||
if response_id == "accept":
|
||||
event.on_yes(do_not_ask_again)
|
||||
|
||||
Reference in New Issue
Block a user