Made dataclasses frozen and slotted for immutability and lower memory usage.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (Python 3.12) (push) Successful in 20s
CI / Tests (Python 3.13) (push) Successful in 22s
CI / Tests (Python 3.14) (push) Successful in 50s
CI / Type Checking (push) Successful in 25s
CI / Spelling (push) Has been cancelled

This commit is contained in:
2026-03-26 13:33:20 -04:00
parent 0ddffe5e09
commit 8a45ba1f91
8 changed files with 29 additions and 29 deletions
+4 -4
View File
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
from .http_client import HttpClient
@dataclass
@dataclass(frozen=True, slots=True)
class StreamKey:
"""A stream key for ingest authentication.
@@ -49,7 +49,7 @@ class StreamKey:
return {"key": self.key, "comment": self.comment}
@dataclass
@dataclass(frozen=True, slots=True)
class VideoVariant:
"""A video output variant (quality level) for transcoding.
@@ -113,7 +113,7 @@ class VideoVariant:
}
@dataclass
@dataclass(frozen=True, slots=True)
class SocialHandle:
"""A social media handle displayed on the server page.
@@ -134,7 +134,7 @@ class SocialHandle:
return {"platform": self.platform, "url": self.url}
@dataclass
@dataclass(frozen=True, slots=True)
class ExternalAction:
"""An external action button displayed in the player UI.