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
mapped_port is int type and port is int type, so this method should return an int.
To Reproduce
Provide a self-contained code snippet that illustrates the bug or unexpected behavior. Ideally, send a Pull Request to illustrate with a test that illustrates the problem.
# settings.pyclassSettings(BaseSettings):
POSTGRES_PORT: int=5432# conftest.py@pytest.fixture(scope="module", autouse=True)defsetup(request):
postgres.start()
defremove_container():
postgres.stop()
request.addfinalizer(remove_container)
settings.POSTGRES_PORT=postgres.get_exposed_port(5432) # pylance error type miss match
Runtime environment
Provide a summary of your runtime environment. Which operating system, python version, and docker version are you using? What is the version of testcontainers-python you are using? You can run the following commands to get the relevant information.
python: 3.12
testcontainers: 4.8.1
docker: 27.3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is. What did you expect to happen? What happened instead?
Method get_exposed_port type miss match:
mapped_port is int type and port is int type, so this method should return an int.
To Reproduce
Provide a self-contained code snippet that illustrates the bug or unexpected behavior. Ideally, send a Pull Request to illustrate with a test that illustrates the problem.
Runtime environment
Provide a summary of your runtime environment. Which operating system, python version, and docker version are you using? What is the version of
testcontainers-python
you are using? You can run the following commands to get the relevant information.python: 3.12
testcontainers: 4.8.1
docker: 27.3.1
The text was updated successfully, but these errors were encountered: