From 364f0b3482d467a47077f44091e1455cbe342cf6 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 11 Sep 2025 17:06:39 +0900 Subject: [PATCH] chore: update dataclass params --- helpers/servers.py | 9 ++++++--- helpers/ui.py | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/helpers/servers.py b/helpers/servers.py index 565ad0a..f86dae7 100644 --- a/helpers/servers.py +++ b/helpers/servers.py @@ -201,7 +201,7 @@ def query_direct(ip: str, qport: int, TIMEOUT=3.0) -> dict | None: return None -@dataclass +@dataclass(slots=True, frozen=True) class Res: status: int parsed: bool @@ -215,14 +215,14 @@ class Ping: ping: int -@dataclass +@dataclass(slots=True, frozen=True) class Details: data: Union[list, None] description: str success: bool -@dataclass +@dataclass(slots=True, frozen=True) class Prereqs: password: bool gameport: int @@ -231,6 +231,9 @@ class Prereqs: @dataclass(slots=True) +""" +The gameport field is manipulated by the RowType.CONN_BY_IP method +""" class Record: ip: str gameport: int diff --git a/helpers/ui.py b/helpers/ui.py index c16296c..3a1a9de 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -99,7 +99,7 @@ If this issue persists, your API key may be defunct. """ -@dataclass +@dataclass(slots=True) class Record: ip: str gameport: int