I have a dataclass like
@dataclass class Passport: byr: int @property def byr(self) -> int: return self._byr @byr.setter def