mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Allow Image type for docker container run image parameter (#11900)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user