Use pydantic models for Task data (fixes: #290)
Further steps:
-
convert enum names to uppercase -
add docstrings -
fix code coverage -
fix mypy issues except for Task.databeing optional -
add deprecationwarnings for dict accessors -
make Task.datanot Optional, possibly passing task data toTask.__init__. (possibly in another issue/MR)
Edited by Enrico Zini