()
| 58 | |
| 59 | |
| 60 | def list_devices() -> list[DeviceInfo]: |
| 61 | ob = _ob() |
| 62 | ctx = ob.Context() |
| 63 | device_list = ctx.query_devices() |
| 64 | count = device_list.get_count() if hasattr(device_list, "get_count") else len(device_list) |
| 65 | return [_device_info(device_list.get_device_by_index(i), i) for i in range(count)] |
| 66 | |
| 67 | |
| 68 | def _matching_devices(selector: str | None) -> list[DeviceInfo]: |
no test coverage detected