Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorRichard Neumann <mail@richard-neumann.de>2021-10-21 22:56:46 +0200
committerRichard Neumann <mail@richard-neumann.de>2021-10-21 22:56:46 +0200
commit8eea3259245814e269e32ce69a08b81fcb2fca53 (patch)
tree58969df58bd15c821c0f8073c7b5070890ec4590 /archinstall
parent63c6f39f98efcaa644d2d64c2e9468cb240a32dd (diff)
Improve type hint
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/hardware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index 7172628b..bbfb06a9 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -76,7 +76,7 @@ def cpuinfo() -> Iterator[dict[str, str]]:
cpu[key.strip()] = value.strip()
-def meminfo(key: Optional[str] = None) -> Union[dict[str, int], int]:
+def meminfo(key: Optional[str] = None) -> Union[dict[str, int], Optional[int]]:
"""Returns a dict with memory info if called with no args
or the value of the given key of said dict.
"""