From 4c7561862af53a95aa491265ba81766262ab4a5c Mon Sep 17 00:00:00 2001 From: rina Date: Sat, 30 Nov 2024 18:02:38 +1000 Subject: [PATCH] fix type issue --- uqcsbot/utils/advent_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uqcsbot/utils/advent_utils.py b/uqcsbot/utils/advent_utils.py index 5c9d0ab..5cb2d70 100644 --- a/uqcsbot/utils/advent_utils.py +++ b/uqcsbot/utils/advent_utils.py @@ -445,7 +445,7 @@ def render_leaderboard_to_image(leaderboard: Leaderboard) -> bytes: # first, try to draw text to obtain required bounding box size _, _, right, bottom = draw.textbbox((PAD, PAD), spaces, font=font) # type: ignore - img = PIL.Image.new("RGB", (right + PAD, bottom + PAD), BG_COLOUR) + img = PIL.Image.new("RGB", (int(right) + PAD, int(bottom) + PAD), BG_COLOUR) draw = PIL.ImageDraw.Draw(img) # draw each layer. layers should be disjoint