Skip to content

Commit 1185d99

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent afa0371 commit 1185d99

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

onetrueslash/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def onetrueslash_command_autocomplete(
120120
if not command or command in matches:
121121
continue
122122
try:
123-
if name == "help" and await command.can_run(ctx) or await _filter(command):
123+
if (name == "help" and await command.can_run(ctx)) or await _filter(command):
124124
if len(name) > 100:
125125
name = name[:99] + "\N{HORIZONTAL ELLIPSIS}"
126126
matches[command] = name

rift/converter.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ async def _search(
121121
if channel in results:
122122
continue
123123
if channel == source:
124-
reasons[
125-
channel.mention
126-
] = "Rifts cannot be opened to the same channel as their source."
124+
reasons[channel.mention] = (
125+
"Rifts cannot be opened to the same channel as their source."
126+
)
127127
continue
128128
if getattr(channel, "nsfw", False) != is_nsfw:
129-
reasons[
130-
channel.mention
131-
] = f"Channel {'is not' if is_nsfw else 'is'} nsfw, while this channel {'is' if is_nsfw else 'is not'}."
129+
reasons[channel.mention] = (
130+
f"Channel {'is not' if is_nsfw else 'is'} nsfw, while this channel {'is' if is_nsfw else 'is not'}."
131+
)
132132
continue
133133
if blacklists[1].get(channel.id, {}).get("blacklisted"):
134134
reasons[channel.mention] = "Channel is blocked from receiving rifts."

rtfs/pages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def _fill_index(self, idx: int) -> int:
7777

7878

7979
class _AsyncIterSource(Generic[_T_co]):
80-
__slots__ = ("_cache", "_aiter")
80+
__slots__ = ("_aiter", "_cache")
8181

8282
def __init__(self, __seq: AsyncIterable[_T_co]) -> None:
8383
self._aiter = aiter(__seq)

turn/turn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class Game(NamedList):
16-
__slots__ = "queue", "destination", "source", "time", "paused", "task"
16+
__slots__ = "destination", "paused", "queue", "source", "task", "time"
1717

1818

1919
def standstr(argument):

0 commit comments

Comments
 (0)