Skip to content

Commit

Permalink
Fix conditional Image imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Apr 4, 2024
1 parent 061d4c3 commit d331cc2
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 d331cc2

Please sign in to comment.