From fa87d85708331ad45f28906217f94937bae474fe Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 1 Mar 2022 01:45:08 +1100 Subject: Fix (some) mypy things (#996) * Fix mypy things * Fix flake8 Co-authored-by: Daniel Girtler --- archinstall/lib/installer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'archinstall/lib/installer.py') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 6f9a1071..cf643b27 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -8,7 +8,7 @@ import pathlib import subprocess import glob from types import ModuleType -from typing import Union, Dict, Any, List, Optional, Iterator, Mapping +from typing import Union, Dict, Any, List, Optional, Iterator, Mapping, TYPE_CHECKING from .disk import get_partitions_in_use, Partition from .general import SysCommand, generate_password from .hardware import has_uefi, is_vm, cpu_vendor @@ -24,6 +24,10 @@ from .disk.btrfs import manage_btrfs_subvolumes from .disk.partition import get_mount_fs_type from .exceptions import DiskError, ServiceException, RequirementError, HardwareIncompatibilityError, SysCallError +if TYPE_CHECKING: + _: Any + + # Any package that the Installer() is responsible for (optional and the default ones) __packages__ = ["base", "base-devel", "linux-firmware", "linux", "linux-lts", "linux-zen", "linux-hardened"] -- cgit v1.2.3-54-g00ecf