Skip to content

Commit 83628e7

Browse files
committed
Fix 2304
1 parent 5a54902 commit 83628e7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

archinstall/lib/models/device_model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from enum import Enum
77
from pathlib import Path
88
from typing import NotRequired, TypedDict, override
9+
from uuid import UUID
910

1011
import parted
1112
from 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'):

0 commit comments

Comments
 (0)