Model/domain/epc/epc_record.py

21 lines
520 B
Python

from __future__ import annotations
from dataclasses import dataclass
from typing import Optional
from domain.epc.property_type import PropertyType
@dataclass(frozen=True)
class EpcRecord:
"""A streamlined record of EPC property data.
A focused subset of the full ``EpcPropertyData``: a property's identity
plus its typed property type. Grow this with further fields as the
domain needs them.
"""
address_line_1: str
postcode: str
uprn: Optional[int]
property_type: PropertyType