chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-05-03 02:14:08 +09:00
1 parent 99083d207a
commit 9bfa39c17e
14 files changed
+160 -142

No files matched your search

+5 -2
View File
@@ -59,7 +59,7 @@ class ServerDialog(GenericDialog):
class ServerDetailsDialog(ServerDialog):
def __init__(self, controller, details: "Details"):
def __init__(self, controller: "Controller", details: "Details"):
name = controller.get_server_name()
super().__init__(controller, strings.server_details, name)
@@ -96,6 +96,9 @@ class ServerDetailsDialog(ServerDialog):
self.pack(scrollable_message)
if details.data is None:
return
for row in details.data:
self.store.append(row + [Pango.Weight.BOLD])
self.view.set_model(self.store)
@@ -115,7 +118,7 @@ class ServerDetailsDialog(ServerDialog):
class ServerModDialog(ServerDialog):
def __init__(self, controller, mods: list[str]):
def __init__(self, controller: "Controller", mods: list[list[str]]):
name = controller.get_server_name()
super().__init__(controller, strings.modlist, name)