Use StrEnum for PartitionType
This commit is contained in:
parent
904ff2f3d5
commit
271b64deda
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue