Skip to content

Commit

Permalink
fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Nov 30, 2024
1 parent 12700d1 commit 4c75618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uqcsbot/utils/advent_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c75618

Please sign in to comment.