MCPcopy Index your code
hub / github.com/archlinux/archinstall / format_highest

Method format_highest

archinstall/lib/models/device.py:450–454  ·  view source on GitHub ↗
(self, include_unit: bool = True, units: Units = Units.BINARY)

Source from the content-addressed store, hash-verified

448 return f'{si_value.value}'
449
450 def format_highest(self, include_unit: bool = True, units: Units = Units.BINARY) -> str:
451 if units == Units.BINARY:
452 return self.binary_unit_highest(include_unit)
453 else:
454 return self.si_unit_highest(include_unit)
455
456 def is_valid_start(self) -> bool:
457 return self >= Size(1, Unit.MiB, self.sector_size)

Callers 7

_validate_valueMethod · 0.95
table_dataMethod · 0.80
_prompt_sizeMethod · 0.80
table_dataMethod · 0.80
table_dataMethod · 0.80
table_dataMethod · 0.80
table_dataMethod · 0.80

Calls 2

binary_unit_highestMethod · 0.95
si_unit_highestMethod · 0.95

Tested by

no test coverage detected