From 9a38b73baf809108c746bdaf6924f27589141323 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Sat, 17 Jan 2026 16:19:07 -0500 Subject: [PATCH] Enable quoted-annotation ruff rule and fixes (#4137) --- archinstall/applications/audio.py | 2 +- archinstall/lib/applications/application_handler.py | 2 +- archinstall/lib/installer.py | 2 +- archinstall/tui/curses_menu.py | 2 +- pyproject.toml | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/archinstall/applications/audio.py b/archinstall/applications/audio.py index bf965be5..5378fe6a 100644 --- a/archinstall/applications/audio.py +++ b/archinstall/applications/audio.py @@ -33,7 +33,7 @@ class AudioApp: def _enable_pipewire( self, install_session: Installer, - users: list['User'] | None = None, + users: list[User] | None = None, ) -> None: if users is None: return diff --git a/archinstall/lib/applications/application_handler.py b/archinstall/lib/applications/application_handler.py index 592f2e26..10066711 100644 --- a/archinstall/lib/applications/application_handler.py +++ b/archinstall/lib/applications/application_handler.py @@ -19,7 +19,7 @@ class ApplicationHandler: def __init__(self) -> None: pass - def install_applications(self, install_session: Installer, app_config: ApplicationConfiguration, users: list['User'] | None = None) -> None: + def install_applications(self, install_session: Installer, app_config: ApplicationConfiguration, users: list[User] | None = None) -> None: if app_config.bluetooth_config and app_config.bluetooth_config.enabled: BluetoothApp().install(install_session) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 1cf158dc..5d0ebcee 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1942,7 +1942,7 @@ class Installer: except SysCallError: return False - def set_vconsole(self, locale_config: 'LocaleConfiguration') -> None: + def set_vconsole(self, locale_config: LocaleConfiguration) -> None: # use the already set kb layout kb_vconsole: str = locale_config.kb_layout # this is the default used in ISO other option for hdpi screens TER16x32 diff --git a/archinstall/tui/curses_menu.py b/archinstall/tui/curses_menu.py index 12020d22..798a9fb9 100644 --- a/archinstall/tui/curses_menu.py +++ b/archinstall/tui/curses_menu.py @@ -50,7 +50,7 @@ class AbstractCurses[ValueT](metaclass=ABCMeta): def clear_help_win(self) -> None: self._help_window.erase() - def _set_help_viewport(self) -> 'Viewport': + def _set_help_viewport(self) -> Viewport: max_height, max_width = Tui.t().max_yx height = max_height - 10 diff --git a/pyproject.toml b/pyproject.toml index 6c5e189b..5262f5d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -228,7 +228,6 @@ ignore = [ "RUF039", # unraw-re-pattern "RUF051", # if-key-in-dict-del "RUF067", # non-empty-init-module - "UP037", # quoted-annotation "W191", # tab-indentation ]