Fix docker mount source type (#14726)

The source of a mount can be None e.g. if the type is tmpfs.
The parse_mount_string also sets source=None in some cases
This commit is contained in:
kasium
2025-09-15 16:57:26 +02:00
committed by GitHub
parent 703f7d074c
commit e02a247a59
+1 -1
View File
@@ -61,7 +61,7 @@ class Mount(dict[str, Incomplete]):
def __init__(
self,
target: str,
source: str,
source: str | None,
type: Literal["bind", "volume", "tmpfs", "npipe"] = "volume",
read_only: bool = False,
consistency: Literal["default", "consistent", "cached", "delegated"] | None = None,