The class SLiCAPprotos.model is used as a record/struct, instantiated only to store data in the MODELS dictionary. Better use a dataclass (less code, automatic __init__, __repr__ and __eq__). Set frozen=True as models should be read-only. Option slots (to save memory) only available in Python 3.10+, so not used (yet).
File MODELS.pp contains the pretty-printed MODELS dictionary, for further use in testing.
The class
SLiCAPprotos.model
is used as a record/struct, instantiated only to store data in theMODELS
dictionary. Better use adataclass
(less code, automatic__init__
,__repr__
and__eq__
). Setfrozen=True
as models should be read-only. Optionslots
(to save memory) only available in Python 3.10+, so not used (yet).File
MODELS.pp
contains the pretty-printedMODELS
dictionary, for further use in testing.