Skip to content

Commit

Permalink
Add type hint for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Oct 8, 2024
1 parent 119dc78 commit 669e3db
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/galaxy/datatypes/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
import base64
import json
import logging
from typing import Optional
from typing import (
Any,
Dict,
List,
Optional,
)

import mrcfile
import numpy as np
Expand Down Expand Up @@ -214,7 +219,7 @@ def set_meta(
offsets = [page.offset for page in tif.pages]

# Aggregate a list of values for each metadata field (one value for each series of the TIFF file)
metadata = {
metadata: Dict[str, List[Any]] = {
key: []
for key in [
"axes",
Expand Down

0 comments on commit 669e3db

Please sign in to comment.