Skip to content

Commit 426650a

Browse files
authored
Fix invalid-annotation warnings reported by Pyrefly (archlinux#3523)
1 parent 26c6812 commit 426650a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

archinstall/lib/models/device_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ class PartitionModification:
890890
def __post_init__(self) -> None:
891891
# needed to use the object as a dictionary key due to hash func
892892
if not hasattr(self, '_obj_id'):
893-
self._obj_id: uuid.UUID | str = uuid.uuid4()
893+
self._obj_id = uuid.uuid4()
894894

895895
if self.is_exists_or_modify() and not self.dev_path:
896896
raise ValueError('If partition marked as existing a path must be set')
@@ -1157,7 +1157,7 @@ class LvmVolume:
11571157
def __post_init__(self) -> None:
11581158
# needed to use the object as a dictionary key due to hash func
11591159
if not hasattr(self, '_obj_id'):
1160-
self._obj_id: uuid.UUID | str = uuid.uuid4()
1160+
self._obj_id = uuid.uuid4()
11611161

11621162
@override
11631163
def __hash__(self) -> int:

0 commit comments

Comments
 (0)