Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Neumann <mail@richard-neumann.de>2021-10-21 22:48:52 +0200
committerRichard Neumann <mail@richard-neumann.de>2021-10-21 22:48:52 +0200
commitca25c356b687ffe9a2b63494de97607e8adc68ca (patch)
tree75e44f6adaaf75ee595258401c3181c9102129d3
parentba725517fd290a60cd4e1ea570dbbf94a47ede05 (diff)
Update type hints
meminfo() returns ints.
-rw-r--r--archinstall/lib/hardware.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index a8f87b80..e4308638 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -152,15 +152,15 @@ def product_name() -> Optional[str]:
return product.read().strip()
-def mem_available() -> Optional[str]:
+def mem_available() -> Optional[int]:
return meminfo('MemAvailable')
-def mem_free() -> Optional[str]:
+def mem_free() -> Optional[int]:
return meminfo('MemFree')
-def mem_total() -> Optional[str]:
+def mem_total() -> Optional[int]:
return meminfo('MemTotal')