Skip to content

Commit

Permalink
Merge pull request #144 from dcermak/remove-dead-code
Browse files Browse the repository at this point in the history
Remove unused TypedDict classes for container inspect
  • Loading branch information
dcermak authored Jul 6, 2023
2 parents dc1d170 + b187baf commit 091cb3e
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pytest_container/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,33 +98,6 @@ class ContainerInspectHealthCheck(TypedDict, total=False):
Retries: int


class _PodmanImageInspect(TypedDict, total=False):
"""Object created by json loading the output of :command:`podman inspect
$img_id`.
"""

Healthcheck: ContainerInspectHealthCheck


class _DockerInspectConfig(TypedDict, total=False):
"""Object created by json loading the output of :command:`docker inspect
$img_id | jq '.[0]["Config"]'`.
"""

Healthcheck: ContainerInspectHealthCheck


class _DockerImageInspect(TypedDict, total=False):
"""Object created by json loading the output of :command:`docker inspect
$img_id`.
"""

Config: _DockerInspectConfig


@enum.unique
class ContainerHealth(enum.Enum):
"""Possible states of a container's health using the `HEALTHCHECK
Expand Down

0 comments on commit 091cb3e

Please sign in to comment.