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

This commit is contained in:
Seaswimmer 2024-07-12 15:52:27 -04:00
parent 63e6f4b552
commit 8d03022453
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -207,7 +207,6 @@ class AddRole(Type):
moderation_type=cls(), moderation_type=cls(),
response=response, response=response,
duration=parsed_time, duration=parsed_time,
role=role,
) )
await target.send(embed=embed, file=get_icon(ctx.bot)) await target.send(embed=embed, file=get_icon(ctx.bot))
except HTTPException: except HTTPException:
@ -343,7 +342,6 @@ class RemoveRole(Type):
moderation_type="removerole", moderation_type="removerole",
response=response, response=response,
duration=parsed_time, duration=parsed_time,
role=role,
) )
await target.send(embed=embed, file=get_icon(ctx.bot)) await target.send(embed=embed, file=get_icon(ctx.bot))
except HTTPException: except HTTPException:
@ -788,7 +786,7 @@ class Tempban(Ban):
return None return None
@classmethod @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': # pylint: disabled=arguments-renamed 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: disable=arguments-renamed
"""Ban a user.""" """Ban a user."""
bot = ctx.bot bot = ctx.bot
try: try: