Skip to content

Commit

Permalink
more syntactical sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
schaefi committed Jan 18, 2024
1 parent b519ff1 commit 9ad8a51
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions kiwi/builder/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,28 @@
KiwiVolumeManagerSetupError
)

StorageMap = TypedDict(
'StorageMap', {
'system': Optional[Union[FileSystemBase, VolumeManagerBase]],
'system_boot': Optional[FileSystemBase],
'system_efi': Optional[FileSystemBase],
'system_spare': Optional[FileSystemBase],
'system_custom_parts': Dict[str, FileSystemBase],
'luks_root': Optional[LuksDevice],
'raid_root': Optional[RaidDevice],
'integrity_root': Optional[IntegrityDevice]
}
)

log = logging.getLogger('kiwi')


class StorageMap(TypedDict):
system: \
Optional[Union[FileSystemBase, VolumeManagerBase]]
system_boot: \
Optional[FileSystemBase]
system_efi: \
Optional[FileSystemBase]
system_spare: \
Optional[FileSystemBase]
system_custom_parts: \
Dict[str, FileSystemBase]
luks_root: \
Optional[LuksDevice]
raid_root: \
Optional[RaidDevice]
integrity_root: \
Optional[IntegrityDevice]


class DiskBuilder:
"""
**Disk image builder**
Expand Down

0 comments on commit 9ad8a51

Please sign in to comment.