Enable quoted-annotation ruff rule and fixes (#4137)

This commit is contained in:
codefiles 2026-01-17 16:19:07 -05:00 committed by GitHub
parent a150a8d9f7
commit 9a38b73baf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 4 additions and 5 deletions

View File

@ -33,7 +33,7 @@ class AudioApp:
def _enable_pipewire( def _enable_pipewire(
self, self,
install_session: Installer, install_session: Installer,
users: list['User'] | None = None, users: list[User] | None = None,
) -> None: ) -> None:
if users is None: if users is None:
return return

View File

@ -19,7 +19,7 @@ class ApplicationHandler:
def __init__(self) -> None: def __init__(self) -> None:
pass 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: if app_config.bluetooth_config and app_config.bluetooth_config.enabled:
BluetoothApp().install(install_session) BluetoothApp().install(install_session)

View File

@ -1942,7 +1942,7 @@ class Installer:
except SysCallError: except SysCallError:
return False return False
def set_vconsole(self, locale_config: 'LocaleConfiguration') -> None: def set_vconsole(self, locale_config: LocaleConfiguration) -> None:
# use the already set kb layout # use the already set kb layout
kb_vconsole: str = locale_config.kb_layout kb_vconsole: str = locale_config.kb_layout
# this is the default used in ISO other option for hdpi screens TER16x32 # this is the default used in ISO other option for hdpi screens TER16x32

View File

@ -50,7 +50,7 @@ class AbstractCurses[ValueT](metaclass=ABCMeta):
def clear_help_win(self) -> None: def clear_help_win(self) -> None:
self._help_window.erase() self._help_window.erase()
def _set_help_viewport(self) -> 'Viewport': def _set_help_viewport(self) -> Viewport:
max_height, max_width = Tui.t().max_yx max_height, max_width = Tui.t().max_yx
height = max_height - 10 height = max_height - 10

View File

@ -228,7 +228,6 @@ ignore = [
"RUF039", # unraw-re-pattern "RUF039", # unraw-re-pattern
"RUF051", # if-key-in-dict-del "RUF051", # if-key-in-dict-del
"RUF067", # non-empty-init-module "RUF067", # non-empty-init-module
"UP037", # quoted-annotation
"W191", # tab-indentation "W191", # tab-indentation
] ]