File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66from enum import Enum
77from pathlib import Path
88from typing import NotRequired , TypedDict , override
9+ from uuid import UUID
910
1011import parted
1112from parted import Disk , Geometry , Partition
@@ -884,6 +885,8 @@ class PartitionModification:
884885 partuuid : str | None = None
885886 uuid : str | None = None
886887
888+ _obj_id : UUID | str = field (init = False )
889+
887890 def __post_init__ (self ) -> None :
888891 # needed to use the object as a dictionary key due to hash func
889892 if not hasattr (self , '_obj_id' ):
@@ -1147,6 +1150,8 @@ class LvmVolume:
11471150 # mapper device path /dev/<vg>/<vol>
11481151 dev_path : Path | None = None
11491152
1153+ _obj_id : uuid .UUID | str = field (init = False )
1154+
11501155 def __post_init__ (self ) -> None :
11511156 # needed to use the object as a dictionary key due to hash func
11521157 if not hasattr (self , '_obj_id' ):
You can’t perform that action at this time.
0 commit comments