From be21fb4be70162ed587ed65451070d23a1bcf4f0 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 4 Jan 2024 15:17:34 -0500 Subject: [PATCH] Fix type warning --- py/hexagram/svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/hexagram/svg.py b/py/hexagram/svg.py index 612f6a7..71609ae 100644 --- a/py/hexagram/svg.py +++ b/py/hexagram/svg.py @@ -26,7 +26,7 @@ def render_to_surface(path: str, surface: cairo.Surface, width: float, height: f surface def render_to_image(path: str, width: float, height: float, style: Optional[str]=None) -> cairo.Surface: - surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height) + surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, int(width), int(height)) render_to_surface(path, surface, width, height, style)