Skip to content

Commit 419cd5e

Browse files
committed
Use typed context object
1 parent 7d13d75 commit 419cd5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pydis_core/exts/source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(self, bot: "Bot", github_repo: str) -> None:
5757
@commands.command(name="source", aliases=("src",))
5858
async def source_command(
5959
self,
60-
ctx: commands.Context,
60+
ctx: commands.Context["Bot"],
6161
*,
6262
source_item: str | None = None,
6363
) -> None:
@@ -74,7 +74,7 @@ async def source_command(
7474
await ctx.send(embed=embed)
7575

7676
@staticmethod
77-
async def _get_source_object(ctx: commands.Context, argument: str) -> tuple[object, _SourceType]:
77+
async def _get_source_object(ctx: commands.Context["Bot"], argument: str) -> tuple[object, _SourceType]:
7878
"""Convert argument into the source object and source type."""
7979
if argument.lower() == "help":
8080
return ctx.bot.help_command, _SourceType.help_command

0 commit comments

Comments
 (0)