Fix conditional Image imports

This commit is contained in:
mvdbeek
2024-04-04 15:06:18 +02:00
parent 061d4c32db
commit d331cc2339
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ except ImportError:
try:
from PIL import Image
except ImportError:
pass
Image = None # type: ignore[assignment]
from galaxy.tool_util.parser.util import (
DEFAULT_DELTA,
+1 -1
View File
@@ -10,7 +10,7 @@ from typing import (
try:
from PIL import Image
except ImportError:
PIL = None
Image = None # type: ignore[assignment]
log = logging.getLogger(__name__)