mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 08:32:10 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
3d33d4f1e0
commit
52d51f2bd7
14 files changed
+50
-41
No files matched your search
@@ -9,7 +9,7 @@ import subprocess
|
||||
import threading
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional, Union
|
||||
from typing import Optional, TYPE_CHECKING, Union
|
||||
|
||||
from dzgui.api.bm import map_id_to_record
|
||||
from dzgui.const.constants import REQUEST_TIMEOUT
|
||||
@@ -19,6 +19,8 @@ from dzgui.util import strings
|
||||
import a2s
|
||||
import dayzquery
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from dayzquery import DayzMod
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logging.getLogger("a2s").setLevel(logging.ERROR)
|
||||
@@ -425,7 +427,7 @@ def validate_ip(addr: str) -> Record:
|
||||
return record
|
||||
|
||||
|
||||
def get_rules(record: Record) -> list[int]:
|
||||
def get_rules(record: Record) -> list["DayzMod"]:
|
||||
ip = record.ip
|
||||
qport = record.qport
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user