Enable quoted-annotation ruff rule and fixes (#4137)
This commit is contained in:
parent
a150a8d9f7
commit
9a38b73baf
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue