From 0658668eb0ff6aeeb860d8ea0d8923f2ae8e22e2 Mon Sep 17 00:00:00 2001 From: Jake Ob Date: Tue, 21 Feb 2023 14:43:10 +0200 Subject: [PATCH] Fix broken TypedDict compatibility with older versions of python By missing to declare the Model as a generic dictionary type we cause the script to fail because the TypedDict is not supported by older versions of python (e.g. 3.6, 3.7). --- jc/parsers/xrandr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jc/parsers/xrandr.py b/jc/parsers/xrandr.py index 0f1e364f..9ac4c44e 100644 --- a/jc/parsers/xrandr.py +++ b/jc/parsers/xrandr.py @@ -297,6 +297,7 @@ except ImportError: Device = Dict[str, Union[str, int, bool]] Frequency = Dict[str, Union[float, bool]] Mode = Dict[str, Union[int, bool, List[Frequency]]] + Model = Dict[str, str] Response = Dict[str, Union[Device, Mode, Screen]]