You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: waiting_for is incorrectly type annotated #889
waiting_for currently is annotated as returning "DockerContainer", but it really should be annotated as returning Self.
This is important because the incorrect annotation loses type information.
To Reproduce
Most type checkers will complain about assigning a DockerContainer to a variable of type MySqlContainer because of this
Activity
alexanderankin commentedon Oct 2, 2025
if you submit the PR I will merge, is it literally just this one line?
alexanderankin commentedon Oct 2, 2025
otherwise i need to get another maintainer involved usually takes longer
eteran commentedon Oct 2, 2025
I think it is essentially just that one line 👍🏻 (perhaps and added import if needed).
I'm about to head to bed, but I can make a PR for it tomorrow.
Fix issue testcontainers#889 by changing the annotated return type of…
eteran commentedon Oct 2, 2025
Actually, it was trivial and I test that it appeases pyright, so I've submitted a PR. Thanks for the quick response!
fix: issue #889 by changing the annotated return type of `waiting_for…
chore(main): release testcontainers 4.13.2 (#891)
alexanderankin commentedon Oct 7, 2025
let me know if its still an issue on new release