Skip to content

Replace Month enum with builtin calendar.Month#172

Merged
jb3 merged 2 commits intomainfrom
upgrade-to-builtin-month
Mar 1, 2026
Merged

Replace Month enum with builtin calendar.Month#172
jb3 merged 2 commits intomainfrom
upgrade-to-builtin-month

Conversation

@lemonyte
Copy link
Member

sir-robin/bot/constants.py

Lines 112 to 117 in 1a67d49

class Month(enum.IntEnum):
"""
Enum lookup between Months & month numbers.
Can bre replaced with the below when upgrading to 3.12
https://docs.python.org/3/library/calendar.html#calendar.Month

According to pyproject.toml the minimum Python version is now 3.14.

requires-python = "==3.14.*"

@python-discord-policy-bot python-discord-policy-bot bot requested a review from a team November 30, 2025 23:35
@jchristgit jchristgit requested a review from shtlrs March 1, 2026 12:18
Copy link
Member

@shtlrs shtlrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jb3 jb3 merged commit e6fdd85 into main Mar 1, 2026
5 checks passed
@jb3 jb3 deleted the upgrade-to-builtin-month branch March 1, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants