From 891c866b3f7f01535a789e0eba11b28a06ccd52e Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Thu, 20 Jul 2023 12:57:37 +1200 Subject: [PATCH] fix some of the annotations on Disk Some of these are probably not really Optional but well. --- subiquity/models/filesystem.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/subiquity/models/filesystem.py b/subiquity/models/filesystem.py index c2fb5a02a..e8cac77ab 100644 --- a/subiquity/models/filesystem.py +++ b/subiquity/models/filesystem.py @@ -619,15 +619,15 @@ class Dasd: @fsobj("disk") class Disk(_Device): ptable: Optional[str] = attributes.ptable() - serial: str = None - wwn: str = None - multipath: str = None - path: str = None + serial: Optional[str] = None + wwn: Optional[str] = None + multipath: Optional[str] = None + path: Optional[str] = None wipe: Optional[str] = None - preserve: str = False + preserve: bool = False name: str = "" grub_device: bool = False - device_id: str = None + device_id: Optional[str] = None _info: StorageInfo = attributes.for_api() _has_in_use_partition: bool = attributes.for_api(default=False)