Skip to content

Commit ed8ee39

Browse files
committed
I heard we're still using balck
1 parent 31c2c07 commit ed8ee39

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

cogs/modmail.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@
1616
from core.models import PermissionLevel
1717
from core.paginator import EmbedPaginatorSession
1818
from core.time import UserFriendlyTime, human_timedelta
19-
from core.utils import format_preview, User, create_not_found_embed, format_description, trigger_typing
19+
from core.utils import (
20+
format_preview,
21+
User,
22+
create_not_found_embed,
23+
format_description,
24+
trigger_typing,
25+
)
2026

2127
logger = logging.getLogger("Modmail")
2228

cogs/plugins.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ async def plugins_remove(self, ctx, *, plugin_name: str):
399399
await self.bot.config.update()
400400
shutil.rmtree(
401401
plugin.abs_path,
402-
onerror=lambda *args: logger.warning('Failed to remove plugin files %s: %s', plugin, str(args[2]))
402+
onerror=lambda *args: logger.warning(
403+
"Failed to remove plugin files %s: %s", plugin, str(args[2])
404+
),
403405
)
404406
try:
405407
plugin.abs_path.parent.rmdir()

core/decorators.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55

66
def trigger_typing(func):
7-
warnings.warn("trigger_typing has been moved to core.utils.trigger_typing, this will be removed.",
8-
DeprecationWarning,
9-
stacklevel=2)
7+
warnings.warn(
8+
"trigger_typing has been moved to core.utils.trigger_typing, this will be removed.",
9+
DeprecationWarning,
10+
stacklevel=2,
11+
)
1012
return _trigger_typing(func)

0 commit comments

Comments
 (0)