mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
21 lines
520 B
Python
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
|