From d5c210f9339d59f22d2d653c9304a920ae927245 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Tue, 8 Apr 2025 13:14:49 +0000 Subject: [PATCH] Remove unused variable reported by Pyright (#3368) --- archinstall/lib/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index c9fd3004..22260e21 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -29,7 +29,7 @@ _VT100_ESCAPE_REGEX_BYTES = _VT100_ESCAPE_REGEX.encode() def generate_password(length: int = 64) -> str: haystack = string.printable # digits, ascii_letters, punctuation (!"#$[] etc) and whitespace - return ''.join(secrets.choice(haystack) for i in range(length)) + return ''.join(secrets.choice(haystack) for _ in range(length)) def locate_binary(name: str) -> str: