From 27baebb7bf8520d34c8a368b9f96afcb313d39a5 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Fri, 11 Oct 2024 20:14:10 -0500 Subject: [PATCH] Problem cleanup --- helpers.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers.py b/helpers.py index 82f1585..30049a0 100644 --- a/helpers.py +++ b/helpers.py @@ -1150,7 +1150,7 @@ class SelectUpdatePlayerTeam(discord.ui.Select): class SelectView(discord.ui.View): - def __init__(self, select_objects: [discord.ui.Select], timeout: float = 300.0): + def __init__(self, select_objects: list[discord.ui.Select], timeout: float = 300.0): super().__init__(timeout=timeout) for x in select_objects: @@ -1192,7 +1192,7 @@ class Dropdown(discord.ui.Select): class DropdownView(discord.ui.View): - def __init__(self, dropdown_objects: [Dropdown], timeout: float = 300.0): + def __init__(self, dropdown_objects: list[Dropdown], timeout: float = 300.0): super().__init__(timeout=timeout) # self.add_item(Dropdown()) @@ -2668,7 +2668,7 @@ def get_ratings_guide(sheets): } -async def paperdex_cardset_embed(team: dict, this_cardset: dict) -> [discord.Embed]: +async def paperdex_cardset_embed(team: dict, this_cardset: dict) -> list[discord.Embed]: all_dex = await db_get( 'paperdex', params=[('team_id', team['id']), ('cardset_id', this_cardset['id']), ('flat', True)] @@ -2781,7 +2781,7 @@ async def paperdex_cardset_embed(team: dict, this_cardset: dict) -> [discord.Emb return display_embeds -async def paperdex_team_embed(team: dict, mlb_team: dict) -> [discord.Embed]: +async def paperdex_team_embed(team: dict, mlb_team: dict) -> list[discord.Embed]: all_dex = await db_get( 'paperdex', params=[('team_id', team['id']), ('franchise', mlb_team['lname']), ('flat', True)]