Skip to content

Commit

Permalink
Add Iterator keyword
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Sella <[email protected]>
  • Loading branch information
inknos committed Dec 3, 2024
1 parent 11a8272 commit 15d23f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion podman/domain/pods_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 15d23f3

Please sign in to comment.