chore: clear linting errors

This commit is contained in:
aclist committed 2026-02-23 19:39:35 +09:00
1 parent d6fd7b2494
commit fd9a23c6d6
16 files changed
+82 -96

No files matched your search

+2 -3
View File
@@ -7,10 +7,9 @@ import requests
import socket
import subprocess
import threading
import typing # noqa
from dataclasses import dataclass
from typing import Union
from typing import Optional, Union
from dzgui.api.bm import map_id_to_record
from dzgui.const.constants import REQUEST_TIMEOUT
@@ -461,7 +460,7 @@ def response_to_fq_ip(res: dict) -> str:
return f"{ip}:{gameport}:{qport}"
def query_id_or_ip(addr: str, key: str) -> None:
def query_id_or_ip(addr: str, key: str) -> Optional[dict]:
# NOTE: Battlemetrics
if addr.isdigit():
try: