diff --git a/dist/PyMonCtl-0.6-py3-none-any.whl b/dist/PyMonCtl-0.6-py3-none-any.whl index fe55dd0..1e3546d 100644 Binary files a/dist/PyMonCtl-0.6-py3-none-any.whl and b/dist/PyMonCtl-0.6-py3-none-any.whl differ diff --git a/src/pymonctl/_pymonctl_linux.py b/src/pymonctl/_pymonctl_linux.py index 46831bd..6d001e1 100644 --- a/src/pymonctl/_pymonctl_linux.py +++ b/src/pymonctl/_pymonctl_linux.py @@ -393,7 +393,7 @@ def mode(self) -> Optional[DisplayMode]: if ret: try: res = ret.split(" ") - lines = list(filter(None, res)) + lines: List[str] = list(filter(None, res)) w, h = lines[0].split("x") r = float(lines[1].replace("+", "").replace("*", "")) value = DisplayMode(int(w), int(h), r) @@ -418,7 +418,7 @@ def defaultMode(self) -> Optional[DisplayMode]: if ret: try: res = ret.split(" ") - lines = list(filter(None, res)) + lines: List[str] = list(filter(None, res)) a, b = lines[0].split("x") w = int(a) h = int(b) @@ -498,7 +498,7 @@ def isSuspended(self) -> Optional[bool]: cmd = "xset -q | grep ' Monitor is ' | awk '{ print$4 }'" ret = _runProc(cmd) if ret: - return ret == "Standby" + return bool(ret == "Standby") return None def attach(self): @@ -630,7 +630,7 @@ def _scale(name: str = "") -> Optional[Tuple[float, float]]: if ret: try: res = ret.split(" ") - lines = list(filter(None, res)) + lines: List[str] = list(filter(None, res)) a, b = lines[0].split("x") w = int(a) h = int(b)