Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/device_model.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-10-03 18:31:17 +1100
committerGitHub <noreply@github.com>2023-10-03 18:31:17 +1100
commitedbc13590366e93bb8a85eacf104d5613bc5793a (patch)
treed26ddd0700b669f747522ae62ba1d71df1ff27d6 /archinstall/lib/disk/device_model.py
parent5c903df55fac449baae1e9cc23b04f6beeb55364 (diff)
Extend the mypy checks (#2120)
* Extend the mypy checks * Update * Update * Update --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/disk/device_model.py')
-rw-r--r--archinstall/lib/disk/device_model.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/archinstall/lib/disk/device_model.py b/archinstall/lib/disk/device_model.py
index 4ac53b0c..cd955851 100644
--- a/archinstall/lib/disk/device_model.py
+++ b/archinstall/lib/disk/device_model.py
@@ -308,9 +308,9 @@ class _PartitionInfo:
start: Size
length: Size
flags: List[PartitionFlag]
- partn: int
- partuuid: str
- uuid: str
+ partn: Optional[int]
+ partuuid: Optional[str]
+ uuid: Optional[str]
disk: Disk
mountpoints: List[Path]
btrfs_subvol_infos: List[_BtrfsSubvolumeInfo] = field(default_factory=list)
@@ -344,9 +344,9 @@ class _PartitionInfo:
cls,
partition: Partition,
fs_type: Optional[FilesystemType],
- partn: int,
- partuuid: str,
- uuid: str,
+ partn: Optional[int],
+ partuuid: Optional[str],
+ uuid: Optional[str],
mountpoints: List[Path],
btrfs_subvol_infos: List[_BtrfsSubvolumeInfo] = []
) -> _PartitionInfo: