Fixed flake8
This commit is contained in:
parent
16852f9501
commit
bcbc9de7b0
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue