From 326801753dd6358548cada6121e97a514a871e7e Mon Sep 17 00:00:00 2001 From: MattHag <16444067+MattHag@users.noreply.github.com> Date: Sun, 6 Oct 2024 22:10:28 +0200 Subject: [PATCH] RuleComponentUI: Type hints methods --- lib/solaar/ui/rule_base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/solaar/ui/rule_base.py b/lib/solaar/ui/rule_base.py index 307907641e..d70967272c 100644 --- a/lib/solaar/ui/rule_base.py +++ b/lib/solaar/ui/rule_base.py @@ -90,15 +90,15 @@ def _show_widgets(self, editable): widget.show() @classmethod - def left_label(cls, component): + def left_label(cls, component) -> str: return type(component).__name__ @classmethod - def right_label(cls, _component): + def right_label(cls, _component) -> str: return "" @classmethod - def icon_name(cls): + def icon_name(cls) -> str: return "" def _remove_panel_items(self):