From a4ab35e12f90d0cd39e7cd4dd8c7edeeb6bd68ee Mon Sep 17 00:00:00 2001 From: Evan Teran Date: Thu, 2 Oct 2025 01:57:42 -0400 Subject: [PATCH] Fix issue #889 by changing the annotated return type of `waiting_for` to `Self`. --- 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 f0882a4c..dcf576ea 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -169,7 +169,7 @@ def maybe_emulate_amd64(self) -> Self: return self.with_kwargs(platform="linux/amd64") return self - def waiting_for(self, strategy: WaitStrategy) -> "DockerContainer": + def waiting_for(self, strategy: WaitStrategy) -> Self: """Set a wait strategy to be used after container start.""" self._wait_strategy = strategy return self