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 7d71ca6 commit db625e8Copy full SHA for db625e8
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
10
class ConnectionMode(Enum):
@@ -19,7 +19,7 @@ def use_mapped_port(self) -> bool:
19
20
This is true for everything but bridge mode.
21
"""
22
- if cast(str, self) == self.bridge_ip:
+ if self == self.bridge_ip: # type: ignore[comparison-overlap]
23
return False
24
return True
25
0 commit comments