fix(aurora): pylint fixes
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Failing after 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 49s

This commit is contained in:
Seaswimmer 2024-07-12 15:49:54 -04:00
parent 47c8116ee0
commit 63e6f4b552
Signed by: cswimr
GPG key ID: 3813315477F26F82
3 changed files with 3 additions and 4 deletions

View file

@ -1,3 +1,4 @@
# pylint: disable=abstract-method
from datetime import timedelta
from math import ceil
from time import time
@ -787,7 +788,7 @@ class Tempban(Ban):
return None
@classmethod
async def handler(cls, ctx: commands.Context, target: Member | User, silent: bool, duration: str, reason: str = None, delete_messages: app_commands.Choice | None = None) -> 'Ban':
async def handler(cls, ctx: commands.Context, target: Member | User, silent: bool, duration: str, reason: str = None, delete_messages: app_commands.Choice | None = None) -> 'Ban': # pylint: disabled=arguments-renamed
"""Ban a user."""
bot = ctx.bot
try:

View file

@ -8,7 +8,7 @@ from redbot.core import commands
type_registry: List['Type'] = ClassRegistry(attr_name='key', unique=True)
class Type(object, metaclass=AutoRegister(type_registry)):
class Type(metaclass=AutoRegister(type_registry)):
"""This is a base class for moderation types.
Attributes: