Problem cleanup
This commit is contained in:
parent
74cbef8d41
commit
27baebb7bf
@ -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)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user