Skip to content

Commit 0d56cfd

Browse files
committed
fix: slots not matched with dataclass
1 parent d2b25d4 commit 0d56cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maimai_py/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class WechatPlayer(Player):
344344

345345
@dataclass
346346
class AreaCharacter:
347-
__slots__ = ("id", "name", "illustrator", "description1", "description2", "team", "props")
347+
__slots__ = ("name", "illustrator", "description1", "description2", "team", "props")
348348

349349
name: str
350350
illustrator: str
@@ -381,7 +381,7 @@ class Area:
381381

382382
@dataclass
383383
class Score:
384-
__slots__ = ("id", "level", "level_index", "achievements", "fc", "fs", "dx_score", "dx_rating", "play_count", "rate", "type", "song")
384+
__slots__ = ("id", "level", "level_index", "achievements", "fc", "fs", "dx_score", "dx_rating", "play_count", "rate", "type")
385385

386386
id: int
387387
level: str

0 commit comments

Comments
 (0)