From f0dbb0b2f7cf9bd7cc17f3a285314158d2f1f932 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Tue, 3 Dec 2024 13:29:16 +0100 Subject: [PATCH] Remove | syntax Signed-off-by: Nicola Sella --- podman/domain/pods_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/podman/domain/pods_manager.py b/podman/domain/pods_manager.py index f7b42a8a..2d27ba63 100644 --- a/podman/domain/pods_manager.py +++ b/podman/domain/pods_manager.py @@ -131,7 +131,9 @@ def remove(self, pod_id: Union[Pod, str], force: Optional[bool] = None) -> None: response = self.client.delete(f"/pods/{pod_id}", params={"force": force}) response.raise_for_status() - def stats(self, **kwargs) -> builtin_list[dict[str, Any]] | [builtin_list[dict[str, Any]]]: + def stats( + self, **kwargs + ) -> Union[builtin_list[dict[str, Any]], [builtin_list[dict[str, Any]]]]: """Resource usage statistics for the containers in pods. Keyword Args: