Use StrEnum for PartitionType

This commit is contained in:
codefiles 2026-04-15 08:18:52 -04:00
parent 904ff2f3d5
commit 271b64deda
1 changed files with 3 additions and 3 deletions

View File

@ -720,9 +720,9 @@ class BDevice:
return hash(self.disk.device.path)
class PartitionType(Enum):
BOOT = 'boot'
PRIMARY = 'primary'
class PartitionType(StrEnum):
BOOT = auto()
PRIMARY = auto()
_UNKNOWN = 'unknown'
@classmethod