From 532641254d05bf33841f83d6e7a171cc70b5858d Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 1 Sep 2026 18:17:50 -0400 Subject: [PATCH 1/3] Use Any for missing types --- archinstall/lib/boot.py | 6 +++--- archinstall/lib/pacman/pacman.py | 3 ++- archinstall/lib/plugins.py | 3 ++- docs/conf.py | 5 +++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/archinstall/lib/boot.py b/archinstall/lib/boot.py index e8fa4c8865..8a596d78c6 100644 --- a/archinstall/lib/boot.py +++ b/archinstall/lib/boot.py @@ -2,7 +2,7 @@ from collections.abc import Iterator from pathlib import Path from types import TracebackType -from typing import ClassVar, Self +from typing import Any, ClassVar, Self from archinstall.lib.command import SysCommand, SysCommandWorker from archinstall.lib.exceptions import SysCallError @@ -104,8 +104,8 @@ def is_alive(self) -> bool: return self.session.is_alive() - def SysCommand(self, cmd: list[str], *args, **kwargs) -> SysCommand: # type: ignore[no-untyped-def] + def SysCommand(self, cmd: list[str], *args: Any, **kwargs: Any) -> SysCommand: return SysCommand(['systemd-run', f'--machine={self.container_name}', '--pty', *cmd], *args, **kwargs) - def SysCommandWorker(self, cmd: list[str], *args, **kwargs) -> SysCommandWorker: # type: ignore[no-untyped-def] + def SysCommandWorker(self, cmd: list[str], *args: Any, **kwargs: Any) -> SysCommandWorker: return SysCommandWorker(['systemd-run', f'--machine={self.container_name}', '--pty', *cmd], *args, **kwargs) diff --git a/archinstall/lib/pacman/pacman.py b/archinstall/lib/pacman/pacman.py index 83b965e2e0..f06d0f1026 100644 --- a/archinstall/lib/pacman/pacman.py +++ b/archinstall/lib/pacman/pacman.py @@ -2,6 +2,7 @@ import time from collections.abc import Callable from pathlib import Path +from typing import Any from archinstall.lib.command import SysCommand from archinstall.lib.exceptions import RequirementError, SysCallError @@ -39,7 +40,7 @@ def run(args: str, default_cmd: str = 'pacman') -> SysCommand: return SysCommand(f'{default_cmd} {args}') - def ask(self, error_message: str, bail_message: str, func: Callable, *args, **kwargs) -> None: # type: ignore[no-untyped-def, type-arg] + def ask(self, error_message: str, bail_message: str, func: Callable, *args: Any, **kwargs: Any) -> None: # type: ignore[type-arg] while True: try: func(*args, **kwargs) diff --git a/archinstall/lib/plugins.py b/archinstall/lib/plugins.py index 6019f114a0..41b862f81e 100644 --- a/archinstall/lib/plugins.py +++ b/archinstall/lib/plugins.py @@ -3,6 +3,7 @@ import sys from importlib import metadata from pathlib import Path +from typing import Any from archinstall.lib.log import error, info, warn from archinstall.lib.version import get_version @@ -27,7 +28,7 @@ # @archinstall.plugin decorator hook to programmatically add # plugins in runtime. Useful in profiles_bck and other things. -def plugin(f, *args, **kwargs) -> None: # type: ignore[no-untyped-def] +def plugin(f: Any, *args: Any, **kwargs: Any) -> None: plugins[f.__name__] = f diff --git a/docs/conf.py b/docs/conf.py index b85b5165ec..e710c66f94 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,17 +1,18 @@ import os import re import sys +from typing import Any sys.path.insert(0, os.path.abspath('..')) -def process_docstring(app, what, name, obj, options, lines) -> None: # type: ignore[no-untyped-def] +def process_docstring(app: Any, what: Any, name: Any, obj: Any, options: Any, lines: Any) -> None: spaces_pat = re.compile(r'( {8})') ll = [spaces_pat.sub(' ', line) for line in lines] lines[:] = ll -def setup(app) -> None: # type: ignore[no-untyped-def] +def setup(app: Any) -> None: app.connect('autodoc-process-docstring', process_docstring) From 5e65604e7eb07613f0d46752d7543e8323b98404 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 1 Sep 2026 19:15:40 -0400 Subject: [PATCH 2/3] Fix missing-return-type-special-method --- archinstall/default_profiles/server.py | 2 +- archinstall/default_profiles/xorg.py | 2 +- archinstall/lib/applications/application_menu.py | 2 +- .../lib/authentication/authentication_menu.py | 2 +- archinstall/lib/boot.py | 2 +- archinstall/lib/bootloader/bootloader_menu.py | 2 +- archinstall/lib/command.py | 4 ++-- archinstall/lib/disk/disk_menu.py | 2 +- archinstall/lib/disk/encryption_menu.py | 2 +- archinstall/lib/disk/filesystem.py | 2 +- archinstall/lib/disk/subvolume_menu.py | 2 +- archinstall/lib/installer.py | 2 +- archinstall/lib/locale/locale_menu.py | 2 +- archinstall/lib/menu/abstract_menu.py | 4 ++-- archinstall/lib/menu/helpers.py | 12 ++++++------ archinstall/lib/menu/list_manager.py | 2 +- archinstall/lib/mirror/mirror_menu.py | 6 +++--- archinstall/lib/models/device.py | 2 +- archinstall/lib/models/users.py | 2 +- archinstall/lib/network/network_menu.py | 2 +- archinstall/lib/networking.py | 2 +- archinstall/lib/pacman/config.py | 2 +- archinstall/lib/pacman/pacman.py | 2 +- archinstall/lib/pacman/pacman_menu.py | 2 +- archinstall/lib/profile/profile_menu.py | 2 +- archinstall/lib/translationhandler.py | 2 +- archinstall/lib/user/user_menu.py | 2 +- archinstall/tui/components.py | 16 ++++++++-------- test_tooling/qemu/qemu.py | 2 +- 29 files changed, 45 insertions(+), 45 deletions(-) diff --git a/archinstall/default_profiles/server.py b/archinstall/default_profiles/server.py index b407fbe317..44d39d1073 100644 --- a/archinstall/default_profiles/server.py +++ b/archinstall/default_profiles/server.py @@ -13,7 +13,7 @@ class ServerProfile(Profile): - def __init__(self, current_value: list[Self] | None = None): + def __init__(self, current_value: list[Self] | None = None) -> None: super().__init__( 'Server', ProfileType.Server, diff --git a/archinstall/default_profiles/xorg.py b/archinstall/default_profiles/xorg.py index 1b96843b3f..afc0d32cb5 100644 --- a/archinstall/default_profiles/xorg.py +++ b/archinstall/default_profiles/xorg.py @@ -11,7 +11,7 @@ def __init__( self, name: str = 'Xorg', profile_type: ProfileType = ProfileType.Xorg, - ): + ) -> None: super().__init__( name, profile_type, diff --git a/archinstall/lib/applications/application_menu.py b/archinstall/lib/applications/application_menu.py index 99e4872692..d08bdc4cc7 100644 --- a/archinstall/lib/applications/application_menu.py +++ b/archinstall/lib/applications/application_menu.py @@ -25,7 +25,7 @@ class ApplicationMenu(AbstractSubMenu[ApplicationConfiguration]): def __init__( self, preset: ApplicationConfiguration | None = None, - ): + ) -> None: if preset: self._app_config = preset else: diff --git a/archinstall/lib/authentication/authentication_menu.py b/archinstall/lib/authentication/authentication_menu.py index 497b925bdc..b5edc0b06f 100644 --- a/archinstall/lib/authentication/authentication_menu.py +++ b/archinstall/lib/authentication/authentication_menu.py @@ -14,7 +14,7 @@ class AuthenticationMenu(AbstractSubMenu[AuthenticationConfiguration]): - def __init__(self, preset: AuthenticationConfiguration | None = None): + def __init__(self, preset: AuthenticationConfiguration | None = None) -> None: if preset: self._auth_config = preset else: diff --git a/archinstall/lib/boot.py b/archinstall/lib/boot.py index 8a596d78c6..d296eb0139 100644 --- a/archinstall/lib/boot.py +++ b/archinstall/lib/boot.py @@ -12,7 +12,7 @@ class Boot: _active_boot: ClassVar[Self | None] = None - def __init__(self, path: Path | str): + def __init__(self, path: Path | str) -> None: if isinstance(path, Path): path = str(path) diff --git a/archinstall/lib/bootloader/bootloader_menu.py b/archinstall/lib/bootloader/bootloader_menu.py index 88fe8f7343..c7d0429a49 100644 --- a/archinstall/lib/bootloader/bootloader_menu.py +++ b/archinstall/lib/bootloader/bootloader_menu.py @@ -15,7 +15,7 @@ def __init__( bootloader_conf: BootloaderConfiguration, uefi: bool, skip_boot: bool = False, - ): + ) -> None: self._bootloader_conf = bootloader_conf self._skip_boot = skip_boot self._uefi = uefi diff --git a/archinstall/lib/command.py b/archinstall/lib/command.py index b0d45754d4..4ebcc09e85 100644 --- a/archinstall/lib/command.py +++ b/archinstall/lib/command.py @@ -23,7 +23,7 @@ def __init__( environment_vars: dict[str, str] | None = None, working_directory: str = './', remove_vt100_escape_codes_from_lines: bool = True, - ): + ) -> None: if isinstance(cmd, str): cmd = shlex.split(cmd) @@ -232,7 +232,7 @@ def __init__( environment_vars: dict[str, str] | None = None, working_directory: str = './', remove_vt100_escape_codes_from_lines: bool = True, - ): + ) -> None: self.cmd = cmd self.peek_output = peek_output self.environment_vars = environment_vars diff --git a/archinstall/lib/disk/disk_menu.py b/archinstall/lib/disk/disk_menu.py index b19a9aa725..96178fbac2 100644 --- a/archinstall/lib/disk/disk_menu.py +++ b/archinstall/lib/disk/disk_menu.py @@ -51,7 +51,7 @@ class DiskMenuConfig: class DiskLayoutConfigurationMenu(AbstractSubMenu[DiskMenuConfig]): - def __init__(self, disk_layout_config: DiskLayoutConfiguration | None): + def __init__(self, disk_layout_config: DiskLayoutConfiguration | None) -> None: if not disk_layout_config: self._disk_menu_config = DiskMenuConfig( disk_config=None, diff --git a/archinstall/lib/disk/encryption_menu.py b/archinstall/lib/disk/encryption_menu.py index 53aa73fe37..7691b8dfe2 100644 --- a/archinstall/lib/disk/encryption_menu.py +++ b/archinstall/lib/disk/encryption_menu.py @@ -29,7 +29,7 @@ def __init__( device_modifications: list[DeviceModification], lvm_config: LvmConfiguration | None = None, preset: DiskEncryption | None = None, - ): + ) -> None: if preset: self._enc_config = preset else: diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py index 9f55b15be7..1bb3523caa 100644 --- a/archinstall/lib/disk/filesystem.py +++ b/archinstall/lib/disk/filesystem.py @@ -31,7 +31,7 @@ class FilesystemHandler: - def __init__(self, disk_config: DiskLayoutConfiguration): + def __init__(self, disk_config: DiskLayoutConfiguration) -> None: self._disk_config = disk_config self._enc_config = disk_config.disk_encryption diff --git a/archinstall/lib/disk/subvolume_menu.py b/archinstall/lib/disk/subvolume_menu.py index 94854b3c93..3bdeaf87b0 100644 --- a/archinstall/lib/disk/subvolume_menu.py +++ b/archinstall/lib/disk/subvolume_menu.py @@ -14,7 +14,7 @@ def __init__( self, btrfs_subvols: list[SubvolumeModification], prompt: str | None = None, - ): + ) -> None: self._actions = [ tr('Add subvolume'), tr('Edit subvolume'), diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 8c6bee22e5..1c28bbd864 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -80,7 +80,7 @@ def __init__( base_packages: list[str] | None = None, kernels: list[str] | None = None, silent: bool = False, - ): + ) -> None: """ `Installer()` is the wrapper for most basic installation steps. It also wraps :py:func:`~archinstall.Installer.pacstrap` among other things. diff --git a/archinstall/lib/locale/locale_menu.py b/archinstall/lib/locale/locale_menu.py index 8257d9fc3f..4c4a20ca32 100644 --- a/archinstall/lib/locale/locale_menu.py +++ b/archinstall/lib/locale/locale_menu.py @@ -13,7 +13,7 @@ class LocaleMenu(AbstractSubMenu[LocaleConfiguration]): def __init__( self, locale_conf: LocaleConfiguration, - ): + ) -> None: self._locale_conf = locale_conf menu_options = self._define_menu_options() diff --git a/archinstall/lib/menu/abstract_menu.py b/archinstall/lib/menu/abstract_menu.py index c37f565702..2b51f58ede 100644 --- a/archinstall/lib/menu/abstract_menu.py +++ b/archinstall/lib/menu/abstract_menu.py @@ -31,7 +31,7 @@ def __init__( auto_cursor: bool = True, allow_reset: bool = False, reset_warning: str | None = None, - ): + ) -> None: self._menu_item_group = item_group self._config = config self.auto_cursor = auto_cursor @@ -152,7 +152,7 @@ def __init__( config: Any, auto_cursor: bool = True, allow_reset: bool = False, - ): + ) -> None: back_text = '← ' + tr('Back') item_group.add_item(MenuItem(text=back_text)) diff --git a/archinstall/lib/menu/helpers.py b/archinstall/lib/menu/helpers.py index 947f3c55fb..3bdc37cad6 100644 --- a/archinstall/lib/menu/helpers.py +++ b/archinstall/lib/menu/helpers.py @@ -21,7 +21,7 @@ def __init__( multi: bool = False, enable_filter: bool = False, wrap_preview: bool = False, - ): + ) -> None: self._header = header self._title = title self._group: MenuItemGroup = group @@ -74,7 +74,7 @@ def __init__( preset: bool = False, preview_location: Literal['bottom'] | None = None, preview_header: str | None = None, - ): + ) -> None: self._header = header self._allow_skip = allow_skip self._allow_reset = allow_reset @@ -108,7 +108,7 @@ async def show(self) -> Result[bool]: class Notify: - def __init__(self, header: str): + def __init__(self, header: str) -> None: self._header = header async def show(self) -> Result[bool]: @@ -143,7 +143,7 @@ def __init__( allow_reset: bool = False, validator_callback: Callable[[str], str | None] | None = None, info_callback: Callable[[str], InputInfo | None] | None = None, - ): + ) -> None: self._header = header self._placeholder = placeholder self._password = password @@ -182,7 +182,7 @@ def __init__( header: str | None = None, timer: int = 3, data_callback: Callable[[], Any] | None = None, - ): + ) -> None: self._header = header self._timer = timer self._data_callback = data_callback @@ -215,7 +215,7 @@ def __init__( multi: bool = False, preview_location: Literal['bottom'] | None = None, preview_header: str | None = None, - ): + ) -> None: self._header = header self._group = group self._data_callback = group_callback diff --git a/archinstall/lib/menu/list_manager.py b/archinstall/lib/menu/list_manager.py index 3b612162ec..9b0d9cfc74 100644 --- a/archinstall/lib/menu/list_manager.py +++ b/archinstall/lib/menu/list_manager.py @@ -15,7 +15,7 @@ def __init__( base_actions: list[str], sub_menu_actions: list[str], prompt: str | None = None, - ): + ) -> None: """ :param prompt: Text which will appear at the header type param: string diff --git a/archinstall/lib/mirror/mirror_menu.py b/archinstall/lib/mirror/mirror_menu.py index af83c9f522..b2a5c9fa63 100644 --- a/archinstall/lib/mirror/mirror_menu.py +++ b/archinstall/lib/mirror/mirror_menu.py @@ -20,7 +20,7 @@ class CustomMirrorRepositoriesList(ListManager[CustomRepository]): - def __init__(self, custom_repositories: list[CustomRepository]): + def __init__(self, custom_repositories: list[CustomRepository]) -> None: self._actions = [ tr('Add a custom repository'), tr('Change custom repository'), @@ -141,7 +141,7 @@ async def _add_custom_repository(self, preset: CustomRepository | None = None) - class CustomMirrorServersList(ListManager[CustomServer]): - def __init__(self, custom_servers: list[CustomServer]): + def __init__(self, custom_servers: list[CustomServer]) -> None: self._actions = [ tr('Add a custom server'), tr('Change custom server'), @@ -206,7 +206,7 @@ def __init__( self, mirror_list_handler: MirrorListHandler, preset: MirrorConfiguration | None = None, - ): + ) -> None: if preset: self._mirror_config = preset else: diff --git a/archinstall/lib/models/device.py b/archinstall/lib/models/device.py index b266eaeb00..b962da0eb9 100644 --- a/archinstall/lib/models/device.py +++ b/archinstall/lib/models/device.py @@ -708,7 +708,7 @@ def table_data(self) -> _SubvolumeModificationSerialization: class DeviceGeometry: - def __init__(self, geometry: Geometry, sector_size: SectorSize): + def __init__(self, geometry: Geometry, sector_size: SectorSize) -> None: self._geometry = geometry self._sector_size = sector_size diff --git a/archinstall/lib/models/users.py b/archinstall/lib/models/users.py index 92546076be..6d463a5575 100644 --- a/archinstall/lib/models/users.py +++ b/archinstall/lib/models/users.py @@ -115,7 +115,7 @@ def __init__( self, plaintext: str = '', enc_password: str | None = None, - ): + ) -> None: if plaintext: enc_password = crypt_yescrypt(plaintext) diff --git a/archinstall/lib/network/network_menu.py b/archinstall/lib/network/network_menu.py index 88c26dba08..ca61b45834 100644 --- a/archinstall/lib/network/network_menu.py +++ b/archinstall/lib/network/network_menu.py @@ -11,7 +11,7 @@ class ManualNetworkConfig(ListManager[Nic]): - def __init__(self, prompt: str, preset: list[Nic]): + def __init__(self, prompt: str, preset: list[Nic]) -> None: self._actions = [ tr('Add interface'), tr('Edit interface'), diff --git a/archinstall/lib/networking.py b/archinstall/lib/networking.py index 4520732e94..819fef4749 100644 --- a/archinstall/lib/networking.py +++ b/archinstall/lib/networking.py @@ -25,7 +25,7 @@ class DownloadTimer: Context manager for timing downloads with timeouts. """ - def __init__(self, timeout: int = 5): + def __init__(self, timeout: int = 5) -> None: """ Args: timeout: diff --git a/archinstall/lib/pacman/config.py b/archinstall/lib/pacman/config.py index 5785b31994..4f1329a95f 100644 --- a/archinstall/lib/pacman/config.py +++ b/archinstall/lib/pacman/config.py @@ -7,7 +7,7 @@ class PacmanConfig: - def __init__(self, target: Path | None): + def __init__(self, target: Path | None) -> None: self._config_remote_path: Path | None = None if target: diff --git a/archinstall/lib/pacman/pacman.py b/archinstall/lib/pacman/pacman.py index f06d0f1026..18477746ee 100644 --- a/archinstall/lib/pacman/pacman.py +++ b/archinstall/lib/pacman/pacman.py @@ -13,7 +13,7 @@ class Pacman: - def __init__(self, target: Path, silent: bool = False): + def __init__(self, target: Path, silent: bool = False) -> None: self.synced = False self.silent = silent self.target = target diff --git a/archinstall/lib/pacman/pacman_menu.py b/archinstall/lib/pacman/pacman_menu.py index 4b47f6d44e..219ac2df62 100644 --- a/archinstall/lib/pacman/pacman_menu.py +++ b/archinstall/lib/pacman/pacman_menu.py @@ -14,7 +14,7 @@ def __init__( self, pacman_conf: PacmanConfiguration, advanced: bool = False, - ): + ) -> None: self._pacman_conf = pacman_conf self._advanced = advanced menu_options = self._define_menu_options() diff --git a/archinstall/lib/profile/profile_menu.py b/archinstall/lib/profile/profile_menu.py index d3b35c8283..2a96f9b44c 100644 --- a/archinstall/lib/profile/profile_menu.py +++ b/archinstall/lib/profile/profile_menu.py @@ -15,7 +15,7 @@ class ProfileMenu(AbstractSubMenu[ProfileConfiguration]): def __init__( self, preset: ProfileConfiguration | None = None, - ): + ) -> None: if preset: self._profile_config = preset else: diff --git a/archinstall/lib/translationhandler.py b/archinstall/lib/translationhandler.py index 39688b4e86..015f96204f 100644 --- a/archinstall/lib/translationhandler.py +++ b/archinstall/lib/translationhandler.py @@ -247,7 +247,7 @@ def _provided_translations(self) -> list[str]: class _DeferredTranslation: - def __init__(self, message: str): + def __init__(self, message: str) -> None: self.message = message @override diff --git a/archinstall/lib/user/user_menu.py b/archinstall/lib/user/user_menu.py index 1aa5649844..d3e6d88119 100644 --- a/archinstall/lib/user/user_menu.py +++ b/archinstall/lib/user/user_menu.py @@ -11,7 +11,7 @@ class UserList(ListManager[User]): - def __init__(self, prompt: str, lusers: list[User]): + def __init__(self, prompt: str, lusers: list[User]) -> None: self._actions = [ tr('Add a user'), tr('Change password'), diff --git a/archinstall/tui/components.py b/archinstall/tui/components.py index 03349c9022..75cb82bea5 100644 --- a/archinstall/tui/components.py +++ b/archinstall/tui/components.py @@ -61,7 +61,7 @@ class BaseScreen(Screen[Result[ValueT]]): Binding('ctrl+c', 'reset_operation', 'Reset', show=True), ] - def __init__(self, allow_skip: bool = False, allow_reset: bool = False): + def __init__(self, allow_skip: bool = False, allow_reset: bool = False) -> None: super().__init__() self._allow_skip = allow_skip self._allow_reset = allow_reset @@ -103,7 +103,7 @@ def __init__( timer: int = 3, data_callback: Callable[[], Any] | None = None, header: str | None = None, - ): + ) -> None: super().__init__() self._timer = timer self._header = header @@ -246,7 +246,7 @@ def __init__( preview_location: Literal['right', 'bottom'] | None = None, enable_filter: bool = False, wrap_preview: bool = False, - ): + ) -> None: super().__init__(allow_skip, allow_reset) self._group = group self._header = header @@ -479,7 +479,7 @@ def __init__( preview_location: Literal['right', 'bottom'] | None = None, enable_filter: bool = False, wrap_preview: bool = False, - ): + ) -> None: super().__init__(allow_skip, allow_reset) self._group = group self._header = header @@ -696,7 +696,7 @@ def __init__( allow_reset: bool = False, preview_location: Literal['bottom'] | None = None, preview_header: str | None = None, - ): + ) -> None: super().__init__(allow_skip, allow_reset) self._group = group self._header = header @@ -780,7 +780,7 @@ def on_key(self, event: Key) -> None: class NotifyScreen(ConfirmationScreen[ValueT]): - def __init__(self, header: str): + def __init__(self, header: str) -> None: group = MenuItemGroup([MenuItem(tr('Ok'))]) super().__init__(group, header) @@ -840,7 +840,7 @@ def __init__( allow_skip: bool = False, validator: Validator | None = None, info_callback: Callable[[str], InputInfo | None] | None = None, - ): + ) -> None: super().__init__(allow_skip, allow_reset) self._header = header or '' self._placeholder = placeholder or '' @@ -999,7 +999,7 @@ def __init__( multi: bool = False, preview_location: Literal['bottom'] | None = None, preview_header: str | None = None, - ): + ) -> None: super().__init__(allow_skip, allow_reset) self._header = header self._group = group diff --git a/test_tooling/qemu/qemu.py b/test_tooling/qemu/qemu.py index 69e766da1d..ccf5cae7f7 100644 --- a/test_tooling/qemu/qemu.py +++ b/test_tooling/qemu/qemu.py @@ -146,7 +146,7 @@ def __init__( environment_vars: dict[str, str] | None = None, working_directory: str = './', remove_vt100_escape_codes_from_lines: bool = True, - ): + ) -> None: if isinstance(cmd, str): cmd = shlex.split(cmd) From 1a5bfd6eabd201fc16baa723361d33ebebb72d70 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Tue, 1 Sep 2026 18:19:54 -0400 Subject: [PATCH 3/3] Enable Ruff flake8-annotations --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 125a1caeac..64abe9aedf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -182,6 +182,7 @@ docstring-code-format = true [tool.ruff.lint] select = [ + "ANN", # flake8-annotations "ASYNC", # flake8-async "B", # flake8-bugbear "C4", # flake8-comprehensions @@ -216,6 +217,7 @@ select = [ ] ignore = [ + "ANN401", # any-type "B008", # function-call-in-default-argument "B904", # raise-without-from-inside-except "B909", # loop-iterator-mutation