From 88768a6a8d7101c9308cd3f204057f5e7717fc32 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Tue, 3 Dec 2024 13:45:49 +0100 Subject: [PATCH] Add Iterator keyword Signed-off-by: Nicola Sella --- podman/domain/pods_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/podman/domain/pods_manager.py b/podman/domain/pods_manager.py index 2d27ba63..e31c459b 100644 --- a/podman/domain/pods_manager.py +++ b/podman/domain/pods_manager.py @@ -3,6 +3,7 @@ import json import logging from typing import Any, Optional, Union +from collections.abc import Iterator from podman import api from podman.domain.manager import Manager @@ -133,7 +134,7 @@ def remove(self, pod_id: Union[Pod, str], force: Optional[bool] = None) -> None: def stats( self, **kwargs - ) -> Union[builtin_list[dict[str, Any]], [builtin_list[dict[str, Any]]]]: + ) -> Union[builtin_list[dict[str, Any]], Iterator[builtin_list[dict[str, Any]]]]: """Resource usage statistics for the containers in pods. Keyword Args: