1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

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).
This commit is contained in:
Jake Ob
2023-02-21 14:43:10 +02:00
parent 6ea2d776ae
commit 0658668eb0

View File

@ -297,6 +297,7 @@ except ImportError:
Device = Dict[str, Union[str, int, bool]] Device = Dict[str, Union[str, int, bool]]
Frequency = Dict[str, Union[float, bool]] Frequency = Dict[str, Union[float, bool]]
Mode = Dict[str, Union[int, bool, List[Frequency]]] Mode = Dict[str, Union[int, bool, List[Frequency]]]
Model = Dict[str, str]
Response = Dict[str, Union[Device, Mode, Screen]] Response = Dict[str, Union[Device, Mode, Screen]]