Skip to content

Commit 003f5fc

Browse files
committed
Fix a mypy issue in config
1 parent 1532df5 commit 003f5fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/testcontainers/core/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from os import environ
88
from os.path import exists
99
from pathlib import Path
10-
from typing import Final, Optional, Union, cast
10+
from typing import Final, Optional, Union
1111

1212
import docker
1313

@@ -39,7 +39,6 @@ def get_docker_socket() -> str:
3939
try:
4040
client = docker.from_env()
4141
socket_path = client.api.get_adapter(client.api.base_url).socket_path
42-
socket_path = cast("str", socket_path)
4342
# return the normalized path as string
4443
return str(Path(socket_path).absolute())
4544
except Exception:

0 commit comments

Comments
 (0)