From 419cd5e37e93bc1a74c5326e03c3bb8bf7397712 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 9 Nov 2025 22:40:50 +0000 Subject: Use typed context object --- pydis_core/exts/source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydis_core/exts/source.py b/pydis_core/exts/source.py index 6766b542..2c6cf22e 100644 --- a/pydis_core/exts/source.py +++ b/pydis_core/exts/source.py @@ -57,7 +57,7 @@ class SourceCode(commands.Cog, description="Displays information about the bot's @commands.command(name="source", aliases=("src",)) async def source_command( self, - ctx: commands.Context, + ctx: commands.Context["Bot"], *, source_item: str | None = None, ) -> None: @@ -74,7 +74,7 @@ class SourceCode(commands.Cog, description="Displays information about the bot's await ctx.send(embed=embed) @staticmethod - async def _get_source_object(ctx: commands.Context, argument: str) -> tuple[object, _SourceType]: + async def _get_source_object(ctx: commands.Context["Bot"], argument: str) -> tuple[object, _SourceType]: """Convert argument into the source object and source type.""" if argument.lower() == "help": return ctx.bot.help_command, _SourceType.help_command -- cgit v1.2.3