We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 993696a commit e9e8c2fCopy full SHA for e9e8c2f
core/testcontainers/core/config.py
@@ -4,7 +4,7 @@
4
from os import environ
5
from os.path import exists
6
from pathlib import Path
7
-from typing import Optional, Union, cast
+from typing import Optional, Union
8
9
import docker
10
@@ -21,7 +21,7 @@ def use_mapped_port(self) -> bool:
21
22
This is true for everything but bridge mode.
23
"""
24
- if cast(str, self) == self.bridge_ip:
+ if self == self.bridge_ip: # type: ignore[comparison-overlap]
25
return False
26
return True
27
0 commit comments