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 1532df5 commit 003f5fcCopy full SHA for 003f5fc
core/testcontainers/core/config.py
@@ -7,7 +7,7 @@
7
from os import environ
8
from os.path import exists
9
from pathlib import Path
10
-from typing import Final, Optional, Union, cast
+from typing import Final, Optional, Union
11
12
import docker
13
@@ -39,7 +39,6 @@ def get_docker_socket() -> str:
39
try:
40
client = docker.from_env()
41
socket_path = client.api.get_adapter(client.api.base_url).socket_path
42
- socket_path = cast("str", socket_path)
43
# return the normalized path as string
44
return str(Path(socket_path).absolute())
45
except Exception:
0 commit comments