MCPcopy Create free account
hub / github.com/archlinux/archinstall / table_data

Method table_data

archinstall/lib/models/device.py:620–630  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

618 return hash(self.path)
619
620 def table_data(self) -> dict[str, str | int | bool]:
621 total_free_space = sum([region.get_length(unit=Unit.MiB) for region in self.free_space_regions])
622 return {
623 'Model': self.model,
624 'Path': str(self.path),
625 'Type': self.type,
626 'Size': self.total_size.format_highest(),
627 'Free space': int(total_free_space),
628 'Sector size': self.sector_size.value,
629 'Read only': self.read_only,
630 }
631
632 @classmethod
633 def from_disk(cls, disk: Disk) -> Self:

Callers

nothing calls this directly

Calls 2

get_lengthMethod · 0.80
format_highestMethod · 0.80

Tested by

no test coverage detected