mirror of
https://github.com/aclist/dztui.git
synced 2026-11-10 12:00:38 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
cacfab35bf
commit
2d265c4b9b
19 files changed
+74
-44
No files matched your search
@@ -25,7 +25,7 @@ class MenuTreeView(TreeView):
|
||||
"""
|
||||
|
||||
def __init__(self, controller: "Controller") -> None:
|
||||
super().__init__(controller)
|
||||
super().__init__(controller, menu=None)
|
||||
|
||||
self.controller = controller
|
||||
|
||||
@@ -73,6 +73,8 @@ class MenuTreeView(TreeView):
|
||||
def get_row_enum(self) -> str:
|
||||
# NOTE: col 1 contains a RowType enum
|
||||
model = self.get_model()
|
||||
if model is None:
|
||||
raise ValueError("Trying to call a method on non-existent model")
|
||||
_iter = self.get_focused_row_iter()
|
||||
rowtype = model.get_value(_iter, 1)
|
||||
return str(rowtype.dict["tooltip"])
|
||||
Reference in new issue
Block a user