(self)
| 1232 | } |
| 1233 | |
| 1234 | def table_data(self) -> dict[str, str]: |
| 1235 | part_mod = { |
| 1236 | 'Type': self.status.value, |
| 1237 | 'Name': self.name, |
| 1238 | 'Size': self.length.format_highest(), |
| 1239 | 'FS type': self.fs_type.value, |
| 1240 | 'Mountpoint': str(self.mountpoint) if self.mountpoint else '', |
| 1241 | 'Mount options': ', '.join(self.mount_options), |
| 1242 | 'Btrfs': '{} {}'.format(str(len(self.btrfs_subvols)), 'vol'), |
| 1243 | } |
| 1244 | return part_mod |
| 1245 | |
| 1246 | def is_modify(self) -> bool: |
| 1247 | return self.status == ModificationStatus.MODIFY |
nothing calls this directly
no test coverage detected