mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: clear linting errors
This commit is contained in:
1 parent
d6fd7b2494
commit
fd9a23c6d6
16 files changed
+82
-96
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user