Fixed flake8

This commit is contained in:
Anton Hvornum 2023-02-23 10:52:17 +01:00
parent 16852f9501
commit bcbc9de7b0
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
2 changed files with 2 additions and 5 deletions

View File

@ -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(

View File

@ -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