aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/events/hacktoberfest/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-08-10 06:04:31 +0000
committerGravatar GitHub <[email protected]>2023-08-10 06:04:31 +0000
commitf897f6c576d7dca764c9c0515b2c576e7fb0daea (patch)
tree4609c804db7ad9e0c4f415fc0e8a8353f2dfc6e1 /bot/exts/events/hacktoberfest/hacktoberstats.py
parentBump rapidfuzz from 3.1.2 to 3.2.0 (#1341) (diff)
Bump ruff from 0.0.272 to 0.0.280 (#1333)
Co-authored-by: wookie184 <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Lovering <[email protected]> Co-authored-by: ChrisJL <[email protected]>
Diffstat (limited to 'bot/exts/events/hacktoberfest/hacktoberstats.py')
-rw-r--r--bot/exts/events/hacktoberfest/hacktoberstats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/events/hacktoberfest/hacktoberstats.py b/bot/exts/events/hacktoberfest/hacktoberstats.py
index c7fd3601..04dc4aae 100644
--- a/bot/exts/events/hacktoberfest/hacktoberstats.py
+++ b/bot/exts/events/hacktoberfest/hacktoberstats.py
@@ -43,7 +43,7 @@ class HacktoberStats(commands.Cog):
@in_month(Month.SEPTEMBER, Month.OCTOBER, Month.NOVEMBER)
@commands.group(name="hacktoberstats", aliases=("hackstats",), invoke_without_command=True)
- async def hacktoberstats_group(self, ctx: commands.Context, github_username: str = None) -> None:
+ async def hacktoberstats_group(self, ctx: commands.Context, github_username: str | None = None) -> None:
"""
Display an embed for a user's Hacktoberfest contributions.
@@ -70,7 +70,7 @@ class HacktoberStats(commands.Cog):
@in_month(Month.SEPTEMBER, Month.OCTOBER, Month.NOVEMBER)
@hacktoberstats_group.command(name="link")
- async def link_user(self, ctx: commands.Context, github_username: str = None) -> None:
+ async def link_user(self, ctx: commands.Context, github_username: str | None = None) -> None:
"""
Link the invoking user's Github github_username to their Discord ID.