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

Function _preview_device_selection

archinstall/lib/disk/disk_menu.py:301–307  ·  view source on GitHub ↗
(item: MenuItem)

Source from the content-addressed store, hash-verified

299
300async def select_devices(preset: list[BDevice] | None = []) -> list[BDevice] | None:
301 def _preview_device_selection(item: MenuItem) -> str | None:
302 device: _DeviceInfo = item.value # type: ignore[assignment]
303 dev = device_handler.get_device(device.path)
304
305 if dev and dev.partition_infos:
306 return as_table(dev.partition_infos)
307 return None
308
309 if preset is None:
310 preset = []

Callers

nothing calls this directly

Calls 2

as_tableFunction · 0.90
get_deviceMethod · 0.80

Tested by

no test coverage detected