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
@@ -871,6 +872,8 @@ class PartitionModification:
871872 partuuid : str | None = None
872873 uuid : str | None = None
873874
875+ _obj_id : UUID | str = field (init = False )
876+
874877 def __post_init__ (self ) -> None :
875878 # needed to use the object as a dictionary key due to hash func
876879 if not hasattr (self , '_obj_id' ):
@@ -1134,6 +1137,8 @@ class LvmVolume:
11341137 # mapper device path /dev/<vg>/<vol>
11351138 dev_path : Path | None = None
11361139
1140+ _obj_id : uuid .UUID | str = field (init = False )
1141+
11371142 def __post_init__ (self ) -> None :
11381143 # needed to use the object as a dictionary key due to hash func
11391144 if not hasattr (self , '_obj_id' ):
You can’t perform that action at this time.
0 commit comments