Skip to content

Commit cd834b4

Browse files
Fixes
1 parent 99a2364 commit cd834b4

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

cogs/make_member.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

utils/msl/core.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Functions to enable interaction with MSL based SU websites."""
22

3-
import datetime as dt
3+
import datetime
44
import logging
5-
from datetime import datetime
65
from typing import TYPE_CHECKING
76

87
import aiohttp
@@ -13,7 +12,6 @@
1312

1413
if 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
@@ -23,17 +21,17 @@
2321
logger: "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,

0 commit comments

Comments
 (0)