From a054ae191aa5d204ecaf7bb09984e0de9cc82815 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sat, 13 May 2023 13:13:08 +0300 Subject: [PATCH] [fix]: Annotations fix --- cogs/music.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/music.py b/cogs/music.py index 3eb6d00..283e1d4 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -20,13 +20,13 @@ YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist':'True'} class Song: register: int url: str - info: Dict[str, Any] + info: dict[str, any] @dataclass class Channel: adder: discord.Member cur_pos: int - queue: List[Song] + queue: list[Song] context: discord.Interaction # skip_policy: Enum "everyone" @@ -34,7 +34,7 @@ class Channel: class Music(commands.Cog, name="Музыка"): def __init__(self, bot): self.bot = bot - self.queue: Dict[int, Channel] = {} + self.queue: dict[int, Channel] = {} @app_commands.command(description="Plays music from popular platforms")