cq: Format with black and isort

This commit is contained in:
Philipp Hörist
2025-01-25 19:15:37 +01:00
parent e6e71d82bf
commit 841b1fb25e
44 changed files with 1641 additions and 1660 deletions

View File

@@ -21,7 +21,6 @@ from typing import cast
from functools import partial
from gajim.gtk.message_input import MessageInputTextView
from gajim.plugins import GajimPlugin
from gajim.plugins.plugins_i18n import _
@@ -31,23 +30,20 @@ from message_box_size.config_dialog import MessageBoxSizeConfigDialog
class MsgBoxSizePlugin(GajimPlugin):
def init(self) -> None:
# pylint: disable=attribute-defined-outside-init
self.description = _('Allows you to adjust the height '
'of the message input.')
self.description = _("Allows you to adjust the height " "of the message input.")
self.config_dialog = partial(MessageBoxSizeConfigDialog, self)
self.gui_extension_points = {
'message_input': (self._on_message_input_created, None)
"message_input": (self._on_message_input_created, None)
}
self.config_default_values = {
'HEIGHT': (20, ''),
"HEIGHT": (20, ""),
}
self._message_input = None
def _on_message_input_created(self,
message_input: MessageInputTextView
) -> None:
def _on_message_input_created(self, message_input: MessageInputTextView) -> None:
self._message_input = message_input
self.set_input_height(cast(int, self.config['HEIGHT']))
self.set_input_height(cast(int, self.config["HEIGHT"]))
def deactivate(self) -> None:
self.set_input_height(-1)