Skip to content

Commit 103ff57

Browse files
committed
format w/black
1 parent 6547249 commit 103ff57

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

app/Bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ def __init__(self, client: discord.Client):
236236
0
237237
]
238238
self.app_commands_invoked: int = 0
239-
self.app_command_invokes_namespaces: List[
240-
Tuple[str, List[Tuple[Any, Any]]]
241-
] = []
239+
self.app_command_invokes_namespaces: List[Tuple[str, List[Tuple[Any, Any]]]] = (
240+
[]
241+
)
242242

243243
async def on_error(
244244
self,

app/classes/OsuAPI.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ async def get_user(self, username: str, mode: str) -> Optional[Dict[str, str]]:
6767
player["accuracy"] = player["accuracy"][:5]
6868
player["playtime"] = str(int(player["total_seconds_played"]) // 60 // 60)
6969

70-
player[
71-
"desc"
72-
] = f"Rank: #{player['pp_rank']} (#{player['pp_country_rank']} {player['country']})\n\n"
70+
player["desc"] = (
71+
f"Rank: #{player['pp_rank']} (#{player['pp_country_rank']} {player['country']})\n\n"
72+
)
7373
player[
7474
"desc"
7575
] += f"{player['pp']} pp, {player['accuracy']}%, {player['playcount']} plays ({player['playtime']})\n\n"

app/classes/Views/Pick.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,13 @@ async def update(self, choice: int):
134134
f"This channel will no longer receive notifications on new chapters of {title}, I suppose!"
135135
)
136136

137-
@ui.button(
138-
emoji="1️⃣", style=discord.ButtonStyle.blurple, custom_id="persistent:one"
139-
)
137+
@ui.button(emoji="1️⃣", style=discord.ButtonStyle.blurple, custom_id="persistent:one")
140138
async def opt_one(
141139
self, interaction: discord.Interaction, button: discord.ui.Button[Self]
142140
):
143141
await self.update(0)
144142

145-
@ui.button(
146-
emoji="2️⃣", style=discord.ButtonStyle.blurple, custom_id="persistent:two"
147-
)
143+
@ui.button(emoji="2️⃣", style=discord.ButtonStyle.blurple, custom_id="persistent:two")
148144
async def opt_two(
149145
self, interaction: discord.Interaction, button: discord.ui.Button[Self]
150146
):

app/cogs/DB.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -756,9 +756,11 @@ async def commands_remove_channel(
756756
mangas_dict: Dict[str, str] = json.loads(channel_exists["mangas"]) # type: ignore
757757

758758
embed = discord.Embed(
759-
title=f"Pick one of the series you wish to unfollow, I suppose! Only 5 series are shown at a time, in fact!"
760-
if len(mangas_dict) > 0
761-
else "This channel is not following any series, in fact!\n Use `/add <manga_title>` to pick some series to start, I suppose!",
759+
title=(
760+
f"Pick one of the series you wish to unfollow, I suppose! Only 5 series are shown at a time, in fact!"
761+
if len(mangas_dict) > 0
762+
else "This channel is not following any series, in fact!\n Use `/add <manga_title>` to pick some series to start, I suppose!"
763+
),
762764
color=discord.Colour.random(),
763765
)
764766

@@ -841,12 +843,16 @@ async def commands_following(self, i: discord.Interaction):
841843

842844
frame = discord.Embed(
843845
color=discord.Colour.random(),
844-
title="This channel is following the series below, in fact!"
845-
if len(series) > 0
846-
else "This channel is not following any series, I suppose!",
847-
description=""
848-
if len(series) > 0
849-
else "Use `/add <series>` to start following a series on this channel, in fact!",
846+
title=(
847+
"This channel is following the series below, in fact!"
848+
if len(series) > 0
849+
else "This channel is not following any series, I suppose!"
850+
),
851+
description=(
852+
""
853+
if len(series) > 0
854+
else "Use `/add <series>` to start following a series on this channel, in fact!"
855+
),
850856
)
851857
if len(series) > 0:
852858
counter = 1

0 commit comments

Comments
 (0)