Skip to content

Commit 6f5f6bc

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

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
@@ -265,7 +265,11 @@ def reload(self) -> None:
265265
pass
266266

267267
def get_container_info(self) -> Optional[ContainerInspectInfo]:
268-
"""Get container information via docker inspect (lazy loaded)."""
268+
"""Get container information via docker inspect (lazy loaded).
269+
270+
Returns:
271+
Container inspect information or None if container is not started.
272+
"""
269273
if self._cached_container_info is not None:
270274
return self._cached_container_info
271275

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)