From 27a474ed4a2ac8c2cc001f7bb969fee494636af4 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Fri, 23 Jun 2023 07:46:30 +0000 Subject: fix: define ret as Optional[str] before reassignment in get_fido2_devices (#1894) --- archinstall/lib/disk/fido.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archinstall/lib/disk') diff --git a/archinstall/lib/disk/fido.py b/archinstall/lib/disk/fido.py index 83b85d08..d8c8fd3c 100644 --- a/archinstall/lib/disk/fido.py +++ b/archinstall/lib/disk/fido.py @@ -36,9 +36,9 @@ class Fido2: # to prevent continous reloading which will slow # down moving the cursor in the menu if not cls._loaded or reload: - ret = "" + ret: Optional[str] = None try: - ret = Optional[str] = SysCommand(f"systemd-cryptenroll --fido2-device=list").decode('UTF-8') + ret = SysCommand("systemd-cryptenroll --fido2-device=list").decode('UTF-8') except: error('fido2 support is most likely not installed') if not ret: -- cgit v1.2.3-54-g00ecf