testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.51k stars 281 forks source link

Bug: Wrong return type hint for exec of DockerContainer #557

Closed levrik closed 2 months ago

levrik commented 4 months ago

Describe the bug

The return type of exec of DockerContainer is defined as tuple[int, str] while it is tuple[int, bytes] at runtime.