Skip to content

Commit

Permalink
Type fixes?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 12, 2024
1 parent 0ba4347 commit b9cef3d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/galaxy/tool_util/deps/mulled/mulled_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,26 @@
mulled-hash samtools=1.3.1,bedtools=2.22
"""
from typing import (
Callable,
Dict,
Iterable,
)

from ._cli import arg_parser
from ..conda_util import hash_conda_packages
from ..conda_util import (
CondaTarget,
hash_conda_packages,
)
from .mulled_build import target_str_to_targets
from .util import (
v1_image_name,
v2_image_name,
)

HASH_FUNCTION = Callable[[Iterable[CondaTarget], ...], str]

IMAGE_FUNCS = {
IMAGE_FUNCS: Dict[str, HASH_FUNCTION] = {
"conda": lambda x: f"mulled-v1-{hash_conda_packages(x)}",
"v1": v1_image_name,
"v2": v2_image_name,
Expand Down

0 comments on commit b9cef3d

Please sign in to comment.