Skip to content

Commit b5f7d06

Browse files
committed
Format changed files using black
Reason: #302 (comment)
1 parent 21ec0da commit b5f7d06

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core/thread.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,9 @@ async def _find_thread_message(channel, message_id):
343343
if str(message_id) == str(embed.author.url).split("/")[-1]:
344344
return msg
345345

346-
async def _fetch_timeout(self) -> typing.Union[None, isodate.duration.Duration, timedelta]:
346+
async def _fetch_timeout(
347+
self
348+
) -> typing.Union[None, isodate.duration.Duration, timedelta]:
347349
"""
348350
This grabs the timeout value for closing threads automatically
349351
from the ConfigManager and parses it for use internally.
@@ -389,7 +391,7 @@ async def _restart_close_timer(self):
389391
close_message = self.bot.config.get(
390392
"thread_auto_close_response",
391393
f"This thread has been closed automatically after no response from"
392-
f" you for {human_time}."
394+
f" you for {human_time}.",
393395
)
394396
time_marker_regex = "%t"
395397
if len(re.findall(time_marker_regex, close_message)) == 1:
@@ -403,8 +405,7 @@ async def _restart_close_timer(self):
403405
if self._auto_close_task:
404406
self._auto_close_task.cancel()
405407
self._auto_close_task = self.bot.loop.call_later(
406-
seconds, self._close_after, self.bot.user, False, True,
407-
close_message
408+
seconds, self._close_after, self.bot.user, False, True, close_message
408409
)
409410

410411
async def edit_message(self, message_id: int, message: str) -> None:

0 commit comments

Comments
 (0)