diff options
author | 2023-05-06 16:12:32 +0100 | |
---|---|---|
committer | 2023-05-09 15:41:50 +0100 | |
commit | 613840ebcf303e84048d48ace37fb001c1afe687 (patch) | |
tree | 9acaf0bae0527fe8389483a419b44e06997ca060 /bot/bot.py | |
parent | Migrate to ruff (diff) |
Apply fixes for ruff linting
Co-authored-by: wookie184 <[email protected]>
Co-authored-by: Amrou Bellalouna <[email protected]>
Diffstat (limited to 'bot/bot.py')
-rw-r--r-- | bot/bot.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,4 @@ import logging -from typing import Optional import discord from discord import DiscordException, Embed @@ -26,7 +25,7 @@ class Bot(BotBase): name = constants.Client.name @property - def member(self) -> Optional[discord.Member]: + def member(self) -> discord.Member | None: """Retrieves the guild member object for the bot.""" guild = self.get_guild(constants.Client.guild) if not guild: |