mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-05 04:55:48 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user