chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-05-05 23:37:31 +09:00
1 parent e64feac425
commit 25640751a5
23 files changed
+86 -105

No files matched your search

+4 -2
View File
@@ -187,10 +187,10 @@ class ServerModelManager:
self._push_data(parsed)
@call_on_thread(dialog.querying)
def add_by_id(self, addr: str) -> None:
def add_by_id(self, _id: str) -> None:
config_man = self.controller.get_config_man()
key = config_man.lookup(Preferences.BM)
res = Servers.query_by_id(addr, key)
res = Servers.query_by_id(int(_id), key)
self._parse_single_record(res)
@call_on_thread(dialog.querying)
@@ -266,6 +266,8 @@ class ServerModelManager:
# NOTE: expected to only contain one item
records = Servers.parse_json([response])
server = records[0]
if server is None:
return
proxy_man = self._get_proxy_man()
config_man = self.controller.get_config_man()