The Database Manager class uses a large count of tuples inside of tuples to organise data, and while the data itself is simple and small, it would be more efficient to be able to refer to the data by name. Utilising a dataclass would essentially wrap this functionality behind named variables instead of unnamed tuples. Alternatively, could use namedtuples instead.
The Database Manager class uses a large count of tuples inside of tuples to organise data, and while the data itself is simple and small, it would be more efficient to be able to refer to the data by name. Utilising a dataclass would essentially wrap this functionality behind named variables instead of unnamed tuples. Alternatively, could use namedtuples instead.