diff --git a/minearchy_bot/__init__.py b/minearchy_bot/__init__.py index 4120a02..eef64b5 100644 --- a/minearchy_bot/__init__.py +++ b/minearchy_bot/__init__.py @@ -19,7 +19,6 @@ from discord.ext.commands import ( ) from .minecraft_server import GeyserServer -from .utils import override class MinearchyBot(CommandsBot): @@ -55,7 +54,6 @@ class MinearchyBot(CommandsBot): ), ) - @override async def on_ready(self) -> None: print( strip( @@ -85,7 +83,6 @@ class MinearchyBot(CommandsBot): except (ExtensionFailed, NoEntryPointError): print(f"Couldn't load {file_name}:\n{format_exception()}") - @override def run(self) -> None: async def runner() -> None: async with self, AIOHTTPSession() as self.session: diff --git a/minearchy_bot/cogs/miscellanious.py b/minearchy_bot/cogs/miscellanious.py index 7f1426b..90ec20e 100644 --- a/minearchy_bot/cogs/miscellanious.py +++ b/minearchy_bot/cogs/miscellanious.py @@ -8,7 +8,6 @@ from typing import TYPE_CHECKING from discord.ext.commands import Cog, command -from ..utils import override if TYPE_CHECKING: from discord import Message @@ -26,7 +25,6 @@ class Miscellaneous( self.bot = bot self.bot.help_command.cog = self - @override def cog_unload(self) -> None: self.bot.help_command.cog = None self.bot.help_command.hidden = True diff --git a/minearchy_bot/utils/__init__.py b/minearchy_bot/utils/__init__.py deleted file mode 100644 index 31f49a6..0000000 --- a/minearchy_bot/utils/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .override import * diff --git a/minearchy_bot/utils/override.py b/minearchy_bot/utils/override.py deleted file mode 100644 index ff5da8a..0000000 --- a/minearchy_bot/utils/override.py +++ /dev/null @@ -1,12 +0,0 @@ -from __future__ import annotations - -__all__ = ("override",) - -from typing import Callable, TypeVar - -T = TypeVar("T", bound = Callable) - - -def override(function: T) -> T: - """Basically Javas @Override annotation. Makes stuff less ambiguous.""" - return function