diff options
| author | 2021-08-07 05:23:03 +0300 | |
|---|---|---|
| committer | 2021-08-31 13:08:51 -0700 | |
| commit | 745cd1d6d3d6227d2a1e82cf25611d76221c40cd (patch) | |
| tree | 6d653668fe1bbfd237b4c87890e0c67a36e2c7f5 /bot/exts/christmas/hanukkah_embed.py | |
| parent | Merge pull request #835 from python-discord/discord-2.0 (diff) | |
Fix type annotations
Diffstat (limited to 'bot/exts/christmas/hanukkah_embed.py')
| -rw-r--r-- | bot/exts/christmas/hanukkah_embed.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/christmas/hanukkah_embed.py b/bot/exts/christmas/hanukkah_embed.py index 119f2446..00125be3 100644 --- a/bot/exts/christmas/hanukkah_embed.py +++ b/bot/exts/christmas/hanukkah_embed.py @@ -1,6 +1,5 @@ import datetime import logging -from typing import List from discord import Embed from discord.ext import commands @@ -26,7 +25,7 @@ class HanukkahEmbed(commands.Cog): self.hanukkah_months = [] self.hanukkah_years = [] - async def get_hanukkah_dates(self) -> List[str]: + async def get_hanukkah_dates(self) -> list[str]: """Gets the dates for hanukkah festival.""" hanukkah_dates = [] async with self.bot.http_session.get(HEBCAL_URL) as response: @@ -101,7 +100,7 @@ class HanukkahEmbed(commands.Cog): await ctx.send(embed=embed) - def hanukkah_dates_split(self, hanukkah_dates: List[str]) -> None: + def hanukkah_dates_split(self, hanukkah_dates: list[str]) -> None: """We are splitting the dates for hanukkah into days, months and years.""" for date in hanukkah_dates: self.hanukkah_days.append(date[8:10]) |