Skip to content

Commit fe941b1

Browse files
authored
fix: issue #889 by changing the annotated return type of waiting_for to Self. (#890)
Fix issue #889 by changing the annotated return type of `waiting_for` to `Self`.
1 parent ce12f22 commit fe941b1

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
@@ -169,7 +169,7 @@ def maybe_emulate_amd64(self) -> Self:
169169
return self.with_kwargs(platform="linux/amd64")
170170
return self
171171

172-
def waiting_for(self, strategy: WaitStrategy) -> "DockerContainer":
172+
def waiting_for(self, strategy: WaitStrategy) -> Self:
173173
"""Set a wait strategy to be used after container start."""
174174
self._wait_strategy = strategy
175175
return self

0 commit comments

Comments
 (0)