RuleComponentUI: Type hints methods

This commit is contained in:
MattHag 2024-10-06 22:10:28 +02:00 committed by Peter F. Patel-Schneider
parent d1f9b9ca3d
commit 194c385824
1 changed files with 3 additions and 3 deletions

View File

@ -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):