Reformat with Black 2023 formatting changes

This commit is contained in:
Jakub Kuczys
2023-04-22 21:43:20 +02:00
parent 6cef8408e8
commit 226d8d734d
7 changed files with 2 additions and 9 deletions

View File

@@ -1009,7 +1009,6 @@ class Repo(RepoJSONMixin):
class RepoManager:
GITHUB_OR_GITLAB_RE = re.compile(r"https?://git(?:hub)|(?:lab)\.com/")
TREE_URL_RE = re.compile(r"(?P<tree>/tree)/(?P<branch>\S+)$")

View File

@@ -299,7 +299,6 @@ class Economy(commands.Cog):
cur_time = calendar.timegm(ctx.message.created_at.utctimetuple())
credits_name = await bank.get_currency_name(ctx.guild)
if await bank.is_global(): # Role payouts will not be used
# Gets the latest time the user used the command successfully and adds the global payday time
next_payday = (
await self.config.user(author).next_payday() + await self.config.PAYDAY_TIME()

View File

@@ -54,7 +54,6 @@ def get_video_ids_from_feed(feed):
class Stream:
token_name: ClassVar[Optional[str]] = None
platform_name: ClassVar[Optional[str]] = None
@@ -106,7 +105,6 @@ class Stream:
class YoutubeStream(Stream):
token_name = "youtube"
platform_name = "YouTube"
@@ -306,7 +304,6 @@ class YoutubeStream(Stream):
class TwitchStream(Stream):
token_name = "twitch"
platform_name = "Twitch"
@@ -464,7 +461,6 @@ class TwitchStream(Stream):
class PicartoStream(Stream):
token_name = None # This streaming services don't currently require an API key
platform_name = "Picarto"

View File

@@ -312,7 +312,7 @@ class TriviaSession:
top_score = self.scores.most_common(1)[0][1]
winners = []
num_humans = 0
for (player, score) in self.scores.items():
for player, score in self.scores.items():
if not player.bot:
if score == top_score:
winners.append(player)