mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -05:00
Reformat with Black 2023 formatting changes
This commit is contained in:
parent
6cef8408e8
commit
226d8d734d
@ -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+)$")
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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"
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -36,7 +36,6 @@ def encode_identifier_data(
|
||||
|
||||
|
||||
class PostgresDriver(BaseDriver):
|
||||
|
||||
_pool: Optional["asyncpg.pool.Pool"] = None
|
||||
|
||||
@classmethod
|
||||
|
||||
@ -430,7 +430,6 @@ class RedHelpFormatter(HelpFormatterABC):
|
||||
await self.make_and_send_embeds(ctx, emb, help_settings=help_settings)
|
||||
|
||||
else: # Code blocks:
|
||||
|
||||
subtext = None
|
||||
subtext_header = None
|
||||
if subcommands:
|
||||
|
||||
@ -58,6 +58,7 @@ log = logging.getLogger("red.core.utils")
|
||||
_T = TypeVar("_T")
|
||||
_S = TypeVar("_S")
|
||||
|
||||
|
||||
# Benchmarked to be the fastest method.
|
||||
def deduplicate_iterables(*iterables):
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user