From 613840ebcf303e84048d48ace37fb001c1afe687 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 6 May 2023 16:12:32 +0100 Subject: Apply fixes for ruff linting Co-authored-by: wookie184 Co-authored-by: Amrou Bellalouna --- bot/bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bot/bot.py') diff --git a/bot/bot.py b/bot/bot.py index da19bdd9..0b20ac54 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -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: -- cgit v1.2.3