Skip to content

Commit e02a247

Browse files
authored
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
1 parent 703f7d0 commit e02a247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/docker/docker/types/services.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Mount(dict[str, Incomplete]):
6161
def __init__(
6262
self,
6363
target: str,
64-
source: str,
64+
source: str | None,
6565
type: Literal["bind", "volume", "tmpfs", "npipe"] = "volume",
6666
read_only: bool = False,
6767
consistency: Literal["default", "consistent", "cached", "delegated"] | None = None,

0 commit comments

Comments
 (0)