Fix type warning
This commit is contained in:
parent
61bfb9308d
commit
be21fb4be7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue