Skip to content

Commit f7c29cb

Browse files
AmirHosein-Gharaatiamirhosein
and
amirhosein
authored
fix(core): change with_command type to include list of strings (#789)
the `with_command` function can actually take an argument with type `list[str]`. Co-authored-by: amirhosein <[email protected]>
1 parent 6817582 commit f7c29cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/testcontainers/core/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def get_exposed_port(self, port: int) -> int:
155155
return self.get_docker_client().port(self._container.id, port)
156156
return port
157157

158-
def with_command(self, command: str) -> Self:
158+
def with_command(self, command: Union[str, list[str]]) -> Self:
159159
self._command = command
160160
return self
161161

0 commit comments

Comments
 (0)