From 194c385824a3cd9f346bdd8e3f8e929a6197d73d 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 30790764..d7096727 100644 --- a/lib/solaar/ui/rule_base.py +++ b/lib/solaar/ui/rule_base.py @@ -90,15 +90,15 @@ class RuleComponentUI: 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):