16 lines
339 B
Python
16 lines
339 B
Python
from .image import Image
|
|
|
|
|
|
class Container:
|
|
__slots__ = ('image', 'runtime', )
|
|
|
|
image: Image
|
|
runtime: str
|
|
|
|
def __init__(self, image: Image, runtime: str) -> None:
|
|
self.image = image
|
|
self.runtime = runtime
|
|
|
|
def __repr__(self) -> str:
|
|
return f'Container({repr(self.image)}, {repr(self.runtime)})'
|