From 19cb5d529fcc125e1d97c1a96c5441de7691ba47 Mon Sep 17 00:00:00 2001 From: amirhosein Date: Sat, 15 Mar 2025 23:30:13 +0330 Subject: [PATCH] fix: change command type to include list of strings --- core/testcontainers/core/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/testcontainers/core/container.py b/core/testcontainers/core/container.py index f677182f4..b5c118182 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -155,7 +155,7 @@ def get_exposed_port(self, port: int) -> int: return self.get_docker_client().port(self._container.id, port) return port - def with_command(self, command: str) -> Self: + def with_command(self, command: Union[str, list[str]]) -> Self: self._command = command return self