"""Release Correction Detail NamedTuples.""" from typing import Dict, List, NamedTuple class ReleaseCorrectionDiffDetail(NamedTuple): """Release Correction Details. This class contains all the fields of a ReleaseCorrectionField mapping so that the downstream code does not have to map any values. The code can get all the necessary information from this class which avoids checking if the correction is for a product or a track. """ field_name: str = '' isrc: str = None old: Dict = {} new: Dict = {} db_table_name: str = '' db_field_name: str = '' email_customer: bool = False accept_update: bool = False class ReleaseCorrectionDiffs(NamedTuple): """Parent Release Correction object.""" changes: List[ReleaseCorrectionDiffDetail] = []