Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profiles.py
diff options
context:
space:
mode:
authorDaniel <blackrabbit256@gmail.com>2022-03-01 01:45:08 +1100
committerGitHub <noreply@github.com>2022-02-28 15:45:08 +0100
commitfa87d85708331ad45f28906217f94937bae474fe (patch)
tree2c0dec90275a7c262cd99db5490215f7aff51694 /archinstall/lib/profiles.py
parent0fed839110983f024edda88c10d9cd55be9ae122 (diff)
Fix (some) mypy things (#996)
* Fix mypy things * Fix flake8 Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/profiles.py')
-rw-r--r--archinstall/lib/profiles.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 4295fa8f..65a30b0b 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -9,11 +9,12 @@ import sys
import urllib.error
import urllib.parse
import urllib.request
-from typing import Optional, Dict, Union, TYPE_CHECKING
+from typing import Optional, Dict, Union, TYPE_CHECKING, Any
from types import ModuleType
# https://stackoverflow.com/a/39757388/929999
if TYPE_CHECKING:
from .installer import Installer
+ _: Any
from .general import multisplit
from .networking import list_interfaces
@@ -123,7 +124,7 @@ class Script:
self.installer = installer # TODO: Appears not to be used anymore?
self.converted_path = None
self.spec = None
- self.examples = None
+ self.examples = {}
self.namespace = os.path.splitext(os.path.basename(self.path))[0]
self.original_namespace = self.namespace
@@ -197,7 +198,7 @@ class Script:
class Profile(Script):
- def __init__(self, installer :Installer, path :str):
+ def __init__(self, installer :Optional[Installer], path :str):
super(Profile, self).__init__(path, installer)
def __dump__(self, *args :str, **kwargs :str) -> Dict[str, str]: