Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG python_version=3.12-slim
ARG python_version=3.13-slim

FROM python:$python_version AS builder
COPY --from=ghcr.io/astral-sh/uv:0.7 /uv /bin/
Expand Down
10 changes: 4 additions & 6 deletions bot/exts/utils/extensions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import functools
import typing as t
from enum import Enum
from enum import Enum, member

from discord import Colour, Embed
from discord.ext import commands
Expand All @@ -23,10 +22,9 @@
class Action(Enum):
"""Represents an action to perform on an extension."""

# Need to be partial otherwise they are considered to be function definitions.
LOAD = functools.partial(Bot.load_extension)
UNLOAD = functools.partial(Bot.unload_extension)
RELOAD = functools.partial(Bot.reload_extension)
LOAD = member(Bot.load_extension)
UNLOAD = member(Bot.unload_extension)
RELOAD = member(Bot.reload_extension)


class Extensions(commands.Cog):
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = [
{name = "Python Discord", email = "info@pythondiscord.com"},
]
license = {text = "MIT"}
requires-python = "==3.12.*"
requires-python = "==3.13.*"
dependencies = [
"pydis-core[all]==11.6.1",
"aiohttp==3.12.14",
Expand Down Expand Up @@ -65,7 +65,7 @@ source_pkgs = ["bot"]
source = ["tests"]

[tool.ruff]
target-version = "py312"
target-version = "py313"
extend-exclude = [".cache"]
line-length = 120
output-format = "concise"
Expand Down
Loading
Loading