Skip to content

Commit 6f2fdab

Browse files
Fix: make docs fails with reference target not found
1 parent 7568040 commit 6f2fdab

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,5 @@
168168
nitpick_ignore = [
169169
("py:class", "typing_extensions.Self"),
170170
("py:class", "docker.models.containers.ExecResult"),
171+
("py:class", "testcontainers.core.docker_client.ContainerInspectInfo"),
171172
]

core/testcontainers/compose/compose.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ def reload(self) -> None:
136136
pass
137137

138138
def get_container_info(self) -> Optional[ContainerInspectInfo]:
139-
"""Get container information via docker inspect (lazy loaded)."""
139+
"""Get container information via docker inspect (lazy loaded).
140+
141+
Returns:
142+
Container inspect information or None if container is not started.
143+
"""
140144
if self._cached_container_info is not None:
141145
return self._cached_container_info
142146

core/testcontainers/core/container.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,11 @@ def exec(self, command: Union[str, list[str]]) -> ExecResult:
302302
return self._container.exec_run(command)
303303

304304
def get_container_info(self) -> Optional[ContainerInspectInfo]:
305-
"""Get container information via docker inspect (lazy loaded)."""
305+
"""Get container information via docker inspect (lazy loaded).
306+
307+
Returns:
308+
Container inspect information or None if container is not started.
309+
"""
306310
if self._cached_container_info is not None:
307311
return self._cached_container_info
308312

0 commit comments

Comments
 (0)