From b0222111f5df7faff47eab66b79dec12c360b635 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 30 Nov 2024 06:53:54 -0500 Subject: [PATCH] Enable the redefined-builtin pylint rule and fix warnings (#2966) --- archinstall/tui/help.py | 6 +++--- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/archinstall/tui/help.py b/archinstall/tui/help.py index 22984fa8..b1800930 100644 --- a/archinstall/tui/help.py +++ b/archinstall/tui/help.py @@ -76,12 +76,12 @@ class Help: max_desc_width = max([help.get_desc_width() for help in help_texts]) max_key_width = max([help.get_key_width() for help in help_texts]) - for help in help_texts: - help_output += f'{help.group_id.value}\n' + for help_group in help_texts: + help_output += f'{help_group.group_id.value}\n' divider_len = max_desc_width + max_key_width help_output += '-' * divider_len + '\n' - for entry in help.group_entries: + for entry in help_group.group_entries: help_output += ( entry.description.ljust(max_desc_width, ' ') + ', '.join(entry.keys) + '\n' diff --git a/pyproject.toml b/pyproject.toml index f75fd8ac..4fafc0b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -165,7 +165,6 @@ disable = [ "fixme", "protected-access", "raise-missing-from", - "redefined-builtin", "unnecessary-lambda", "unreachable", "unspecified-encoding",