def get_device() -> str: """ Retrieve the device type. """ from sys import platform device = DEVICE_DESCRIPTIONS.get(platform) if not device: device = platform.replace(" ", "") return device