We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d406f55 + 672397c commit 12ef0a8Copy full SHA for 12ef0a8
podman/domain/images_manager.py
@@ -123,7 +123,7 @@ def get_registry_data(
123
124
def load(
125
self, data: Optional[bytes] = None, file_path: Optional[os.PathLike] = None
126
- ) -> Generator[bytes, None, None]:
+ ) -> Generator[Image, None, None]:
127
"""Restore an image previously saved.
128
129
Args:
@@ -159,7 +159,7 @@ def load(
159
)
160
response.raise_for_status() # Catch any errors before proceeding
161
162
- def _generator(body: dict) -> Generator[bytes, None, None]:
+ def _generator(body: dict) -> Generator[Image, None, None]:
163
# Iterate and yield images from response body
164
for item in body["Names"]:
165
yield self.get(item)
0 commit comments