mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -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:
|
class RepoManager:
|
||||||
|
|
||||||
GITHUB_OR_GITLAB_RE = re.compile(r"https?://git(?:hub)|(?:lab)\.com/")
|
GITHUB_OR_GITLAB_RE = re.compile(r"https?://git(?:hub)|(?:lab)\.com/")
|
||||||
TREE_URL_RE = re.compile(r"(?P<tree>/tree)/(?P<branch>\S+)$")
|
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())
|
cur_time = calendar.timegm(ctx.message.created_at.utctimetuple())
|
||||||
credits_name = await bank.get_currency_name(ctx.guild)
|
credits_name = await bank.get_currency_name(ctx.guild)
|
||||||
if await bank.is_global(): # Role payouts will not be used
|
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
|
# Gets the latest time the user used the command successfully and adds the global payday time
|
||||||
next_payday = (
|
next_payday = (
|
||||||
await self.config.user(author).next_payday() + await self.config.PAYDAY_TIME()
|
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:
|
class Stream:
|
||||||
|
|
||||||
token_name: ClassVar[Optional[str]] = None
|
token_name: ClassVar[Optional[str]] = None
|
||||||
platform_name: ClassVar[Optional[str]] = None
|
platform_name: ClassVar[Optional[str]] = None
|
||||||
|
|
||||||
@ -106,7 +105,6 @@ class Stream:
|
|||||||
|
|
||||||
|
|
||||||
class YoutubeStream(Stream):
|
class YoutubeStream(Stream):
|
||||||
|
|
||||||
token_name = "youtube"
|
token_name = "youtube"
|
||||||
platform_name = "YouTube"
|
platform_name = "YouTube"
|
||||||
|
|
||||||
@ -306,7 +304,6 @@ class YoutubeStream(Stream):
|
|||||||
|
|
||||||
|
|
||||||
class TwitchStream(Stream):
|
class TwitchStream(Stream):
|
||||||
|
|
||||||
token_name = "twitch"
|
token_name = "twitch"
|
||||||
platform_name = "Twitch"
|
platform_name = "Twitch"
|
||||||
|
|
||||||
@ -464,7 +461,6 @@ class TwitchStream(Stream):
|
|||||||
|
|
||||||
|
|
||||||
class PicartoStream(Stream):
|
class PicartoStream(Stream):
|
||||||
|
|
||||||
token_name = None # This streaming services don't currently require an API key
|
token_name = None # This streaming services don't currently require an API key
|
||||||
platform_name = "Picarto"
|
platform_name = "Picarto"
|
||||||
|
|
||||||
|
|||||||
@ -312,7 +312,7 @@ class TriviaSession:
|
|||||||
top_score = self.scores.most_common(1)[0][1]
|
top_score = self.scores.most_common(1)[0][1]
|
||||||
winners = []
|
winners = []
|
||||||
num_humans = 0
|
num_humans = 0
|
||||||
for (player, score) in self.scores.items():
|
for player, score in self.scores.items():
|
||||||
if not player.bot:
|
if not player.bot:
|
||||||
if score == top_score:
|
if score == top_score:
|
||||||
winners.append(player)
|
winners.append(player)
|
||||||
|
|||||||
@ -36,7 +36,6 @@ def encode_identifier_data(
|
|||||||
|
|
||||||
|
|
||||||
class PostgresDriver(BaseDriver):
|
class PostgresDriver(BaseDriver):
|
||||||
|
|
||||||
_pool: Optional["asyncpg.pool.Pool"] = None
|
_pool: Optional["asyncpg.pool.Pool"] = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
@ -430,7 +430,6 @@ class RedHelpFormatter(HelpFormatterABC):
|
|||||||
await self.make_and_send_embeds(ctx, emb, help_settings=help_settings)
|
await self.make_and_send_embeds(ctx, emb, help_settings=help_settings)
|
||||||
|
|
||||||
else: # Code blocks:
|
else: # Code blocks:
|
||||||
|
|
||||||
subtext = None
|
subtext = None
|
||||||
subtext_header = None
|
subtext_header = None
|
||||||
if subcommands:
|
if subcommands:
|
||||||
|
|||||||
@ -58,6 +58,7 @@ log = logging.getLogger("red.core.utils")
|
|||||||
_T = TypeVar("_T")
|
_T = TypeVar("_T")
|
||||||
_S = TypeVar("_S")
|
_S = TypeVar("_S")
|
||||||
|
|
||||||
|
|
||||||
# Benchmarked to be the fastest method.
|
# Benchmarked to be the fastest method.
|
||||||
def deduplicate_iterables(*iterables):
|
def deduplicate_iterables(*iterables):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user