(self)
| 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: |
nothing calls this directly
no test coverage detected