Skip to content

Commit

Permalink
Don't use slots in dataclasses
Browse files Browse the repository at this point in the history
This wasn't added until 3.10
  • Loading branch information
acarapetis committed Aug 10, 2024
1 parent 5043dc5 commit f4bea2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shroudstone/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class AIType(IntEnum):
MurderBotSr = 2


@dataclass(slots=True)
@dataclass()
class Slot:
type: SlotType = SlotType.Human
faction: Faction = Faction(0)
Expand All @@ -240,7 +240,7 @@ class MatchType(IntEnum):
Coop3ve = 3


@dataclass(slots=True)
@dataclass()
class Client:
uuid: UUID
client_id: int
Expand All @@ -251,7 +251,7 @@ class Client:
left_game_reason: LeftGameReason = LeftGameReason.Unknown


@dataclass(slots=True)
@dataclass()
class SlotAssignment:
slot_number: int
nickname: str
Expand All @@ -261,7 +261,7 @@ def parse_uuid(uuid: pb.UUID) -> UUID:
return UUID(bytes=struct.pack(">QQ", uuid.part1, uuid.part2))


@dataclass(slots=True)
@dataclass()
class GameState:
"""Stormgate match state machine - reads commands from replay and updates state"""

Expand Down

0 comments on commit f4bea2d

Please sign in to comment.