Fix lint issue in agbench (#409)

* Fix lint issue in agbench

* remove import
This commit is contained in:
Jack Gerrits 2024-08-27 14:09:30 -04:00 committed by GitHub
parent 62e5e5b88d
commit 4eadecf4c9

View File

@ -16,7 +16,6 @@ import docker
from azure.core.exceptions import ClientAuthenticationError
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from docker.errors import APIError, DockerException, ImageNotFound
from docker.models.containers import Container
from typing_extensions import TypedDict
from .version import __version__
@ -504,9 +503,7 @@ echo RUN.SH COMPLETE !#!#
assert image is not None
# Create and run the container
container: Container = cast(
Container,
client.containers.run(
container = client.containers.run(
image,
command=["sh", "run.sh"],
working_dir="/workspace",
@ -516,7 +513,6 @@ echo RUN.SH COMPLETE !#!#
auto_remove=True,
# Type hint of docker is wrong here
volumes=volumes, # type: ignore
),
)
# Read the logs in a streaming fashion. Keep an eye on the time to make sure we don't need to stop.