Skip to content

Commit

Permalink
resolve type hint import issue. fixes #203.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney authored and robertbartel committed Oct 24, 2022
1 parent f8a3ca5 commit 4b02fee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lib/scheduler/dmod/scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from dmod.core.meta_data import DataCategory, DataFormat
from os import getenv
import docker
from docker.models.services import Service as DockerService
from docker.types import Mount, SecretReference
import yaml
from typing import Dict, List, Optional, TYPE_CHECKING, Tuple
Expand Down Expand Up @@ -160,7 +161,7 @@ def __init__(self, images_and_domains_yaml, docker_client=None, api_client=None,
self.networks = ["mpi-net"]

def create_service(self, serviceParams: DockerServiceParameters, idx: int, docker_cmd_args: List[str]) \
-> docker.from_env().services.create:
-> DockerService:
"""
Create new service with Healthcheck, host, and other info
Expand Down

0 comments on commit 4b02fee

Please sign in to comment.