From ee7c3ae187bab397e8411d3ef63700c47f395d57 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Wed, 28 May 2025 07:47:00 -0400 Subject: [PATCH] Fix invalid-annotation warnings reported by Pyrefly --- archinstall/lib/models/device_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/models/device_model.py b/archinstall/lib/models/device_model.py index 8d139e15df..77c95ccfd8 100644 --- a/archinstall/lib/models/device_model.py +++ b/archinstall/lib/models/device_model.py @@ -890,7 +890,7 @@ class PartitionModification: def __post_init__(self) -> None: # needed to use the object as a dictionary key due to hash func if not hasattr(self, '_obj_id'): - self._obj_id: uuid.UUID | str = uuid.uuid4() + self._obj_id = uuid.uuid4() if self.is_exists_or_modify() and not self.dev_path: raise ValueError('If partition marked as existing a path must be set') @@ -1157,7 +1157,7 @@ class LvmVolume: def __post_init__(self) -> None: # needed to use the object as a dictionary key due to hash func if not hasattr(self, '_obj_id'): - self._obj_id: uuid.UUID | str = uuid.uuid4() + self._obj_id = uuid.uuid4() @override def __hash__(self) -> int: