From bcbc9de7b0444cbf5a915a41953b3a30173d1b85 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 23 Feb 2023 10:52:17 +0100 Subject: [PATCH] Fixed flake8 --- archinstall/lib/disk/helpers.py | 2 +- archinstall/lib/disk/partition.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index 2a02d5ec..74a47c63 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -246,7 +246,7 @@ def get_blockdevice_info(device_path, exclude_iso_dev :bool = True) -> Dict[str, return enrich_blockdevice_information(information) else: # We could not reliably get any information, perhaps the disk is clean of information? - if retry_attempt == storage['DISK_RETRY_ATTEMPTS'] -1: + if retry_attempt == storage['DISK_RETRY_ATTEMPTS'] - 1: raise ex def all_blockdevices( diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py index 51ffe212..12b1a9a6 100644 --- a/archinstall/lib/disk/partition.py +++ b/archinstall/lib/disk/partition.py @@ -109,10 +109,7 @@ class Partition: except DiskError: self._partition_info = None - - # I hate doint this but I'm currently unsure where this - # is acutally used to be able to fix the typing issues properly - @typing.no_type_check + @typing.no_type_check # I hate doint this but I'm currently unsure where this is used. def __lt__(self, left_comparitor :BlockDevice) -> bool: if type(left_comparitor) == Partition: left_comparitor = left_comparitor.path