File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,15 +324,15 @@ async def _open_make_new_member_modal(
324324 view = OpenMemberVerifyModalView (),
325325 )
326326
327- @discord .slash_command ( # type: ignore[no-untyped-call, misc]
327+ @discord .slash_command (
328328 name = "make-member-modal" ,
329329 description = (
330330 "prints a message with a button that allows users to open the make member modal, "
331331 ),
332332 )
333333 @CommandChecks .check_interaction_user_has_committee_role
334334 @CommandChecks .check_interaction_user_in_main_guild
335- async def make_member_modal ( # type: ignore[misc]
335+ async def make_member_modal (
336336 self ,
337337 ctx : "TeXBotApplicationContext" ,
338338 ) -> None :
Original file line number Diff line number Diff line change 11"""Functions to enable interaction with MSL based SU websites."""
22
3- import datetime as dt
3+ import datetime
44import logging
5- from datetime import datetime
65from typing import TYPE_CHECKING
76
87import aiohttp
1312
1413if TYPE_CHECKING :
1514 from collections .abc import Mapping , Sequence
16- from datetime import timezone
1715 from http .cookies import Morsel
1816 from logging import Logger
1917 from typing import Final
2321logger : "Final[Logger]" = logging .getLogger ("TeX-Bot" )
2422
2523
26- DEFAULT_TIMEZONE : "Final[timezone]" = dt .UTC
27- TODAYS_DATE : "Final[datetime]" = datetime .now (tz = DEFAULT_TIMEZONE )
24+ DEFAULT_TIMEZONE : "Final[datetime. timezone]" = datetime .UTC
25+ TODAYS_DATE : "Final[datetime.datetime ]" = datetime . datetime .now (tz = DEFAULT_TIMEZONE )
2826
29- CURRENT_YEAR_START_DATE : "Final[datetime]" = datetime (
27+ CURRENT_YEAR_START_DATE : "Final[datetime.datetime ]" = datetime . datetime (
3028 year = TODAYS_DATE .year if TODAYS_DATE .month >= 7 else TODAYS_DATE .year - 1 ,
3129 month = 7 ,
3230 day = 1 ,
3331 tzinfo = DEFAULT_TIMEZONE ,
3432)
3533
36- CURRENT_YEAR_END_DATE : "Final[datetime]" = datetime (
34+ CURRENT_YEAR_END_DATE : "Final[datetime.datetime ]" = datetime . datetime (
3735 year = TODAYS_DATE .year if TODAYS_DATE .month >= 7 else TODAYS_DATE .year - 1 ,
3836 month = 6 ,
3937 day = 30 ,
You can’t perform that action at this time.
0 commit comments