mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-19 18:31:05 -05:00
Replace dataclass Mutable Default Values with Call to field
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"""Constants for VideoProcessor"""
|
"""Constants for VideoProcessor"""
|
||||||
|
|
||||||
from typing import Dict, List, Union
|
from typing import Dict, List, Union
|
||||||
from dataclasses import dataclass
|
from dataclasses import field, dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
class ReactionType(Enum):
|
class ReactionType(Enum):
|
||||||
@@ -27,9 +27,9 @@ class ReactionEmojis:
|
|||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class ProgressEmojis:
|
class ProgressEmojis:
|
||||||
"""Emoji sequences for progress indicators"""
|
"""Emoji sequences for progress indicators"""
|
||||||
NUMBERS: List[str] = ('1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣')
|
NUMBERS: List[str] = field(default_factory=lambda: ('1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣'))
|
||||||
PROGRESS: List[str] = ('⬛', '🟨', '🟩')
|
PROGRESS: List[str] = field(default_factory=lambda: ('⬛', '🟨', '🟩'))
|
||||||
DOWNLOAD: List[str] = ('0️⃣', '2️⃣', '4️⃣', '6️⃣', '8️⃣', '🔟')
|
DOWNLOAD: List[str] = field(default_factory=lambda: ('0️⃣', '2️⃣', '4️⃣', '6️⃣', '8️⃣', '🔟'))
|
||||||
|
|
||||||
# Main reactions dictionary with type hints
|
# Main reactions dictionary with type hints
|
||||||
REACTIONS: Dict[str, Union[str, List[str]]] = {
|
REACTIONS: Dict[str, Union[str, List[str]]] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user