aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-11-09 22:40:50 +0000
committerGravatar Joe Banks <[email protected]>2025-11-09 23:23:11 +0000
commit419cd5e37e93bc1a74c5326e03c3bb8bf7397712 (patch)
treeb5b170da021ff018ed46e9faafae04b519e9f52e
parentMove avatar to constant (diff)
Use typed context object
-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..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