Skip to content

Commit db625e8

Browse files
committed
Fix comparison-overlap check for config
1 parent 7d71ca6 commit db625e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/testcontainers/core/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from os import environ
55
from os.path import exists
66
from pathlib import Path
7-
from typing import Optional, Union, cast
7+
from typing import Optional, Union
88

99

1010
class ConnectionMode(Enum):
@@ -19,7 +19,7 @@ def use_mapped_port(self) -> bool:
1919
2020
This is true for everything but bridge mode.
2121
"""
22-
if cast(str, self) == self.bridge_ip:
22+
if self == self.bridge_ip: # type: ignore[comparison-overlap]
2323
return False
2424
return True
2525

0 commit comments

Comments
 (0)