Allow Image type for docker container run image parameter (#11900)

This commit is contained in:
Adam Dangoor
2024-05-12 11:14:06 +01:00
committed by GitHub
parent b42e3b2e89
commit f75211b801

View File

@@ -1,6 +1,7 @@
from _typeshed import Incomplete
from typing import NamedTuple
from .images import Image
from .resource import Collection, Model
class Container(Model):
@@ -58,7 +59,7 @@ class ContainerCollection(Collection[Container]):
model: type[Container]
def run(
self,
image: str,
image: str | Image,
command: str | list[str] | None = None,
stdout: bool = True,
stderr: bool = False,