aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-11-09 22:40:50 +0000
committerGravatar Joe Banks <[email protected]>2025-11-10 23:19:27 +0000
commit2ea5594b3c3272df5ffe6bd3e3ba4c8f5b5d4559 (patch)
tree8feffa21b1314e1a6956ac7829aef830e36fdf0e /pydis_core
parentMove avatar to constant (diff)
Use typed context object
Diffstat (limited to 'pydis_core')
-rw-r--r--pydis_core/exts/source.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_core/exts/source.py b/pydis_core/exts/source.py
index 6766b542..1edc610c 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