Skip to content

Commit

Permalink
RuleComponentUI: Type hints methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHag committed Oct 6, 2024
1 parent 89982be commit 8c502bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/solaar/ui/rule_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8c502bd

Please sign in to comment.