Skip to content

Commit

Permalink
Merge pull request #17899 from mvdbeek/fix_basic_tool_util
Browse files Browse the repository at this point in the history
[24.0] Fix conditional Image imports
  • Loading branch information
mvdbeek authored Apr 4, 2024
2 parents e970ae5 + d331cc2 commit 46c20cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/verify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
try:
from PIL import Image
except ImportError:
pass
Image = None # type: ignore[assignment]

from galaxy.tool_util.parser.util import (
DEFAULT_DELTA,
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/util/image_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
try:
from PIL import Image
except ImportError:
PIL = None
Image = None # type: ignore[assignment]

log = logging.getLogger(__name__)

Expand Down

0 comments on commit 46c20cd

Please sign in to comment.