Replace NamedTuples with more flexible dataclass, which also support type hints. Introduce enums to replace constant strings, which need to be kept in sync. Also enhances interfaces by limiting it to the enum values. Remove unused variables.
A Fortis Scientia site