From 6719997d8a534ab517a67f3a74b11399b8844c96 Mon Sep 17 00:00:00 2001 From: Paul Friederichsen Date: Sat, 22 Jul 2023 15:52:32 -0500 Subject: [PATCH] Fix tuple typing in HydrusSVGHandling for old versions of Python --- hydrus/core/HydrusSVGHandling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hydrus/core/HydrusSVGHandling.py b/hydrus/core/HydrusSVGHandling.py index e77b9d00..01afc24a 100644 --- a/hydrus/core/HydrusSVGHandling.py +++ b/hydrus/core/HydrusSVGHandling.py @@ -1,3 +1,4 @@ +import typing from qtpy import QtSvg from qtpy import QtGui as QG from qtpy import QtCore as QC @@ -24,7 +25,7 @@ def LoadSVGRenderer(path: str): return renderer -def GenerateThumbnailBytesFromSVGPath(path: str, target_resolution: tuple[int, int], clip_rect = None) -> bytes: +def GenerateThumbnailBytesFromSVGPath(path: str, target_resolution: typing.Tuple[int, int], clip_rect = None) -> bytes: # TODO handle clipping