mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
21 lines
470 B
Python
21 lines
470 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass, field
|
|
from typing import NewType, Optional
|
|
|
|
from domain.postcode import Postcode
|
|
|
|
|
|
def _empty_source_row() -> dict[str, str]:
|
|
return {}
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class StandardisedAddress:
|
|
address: str
|
|
postcode: Postcode
|
|
org_reference: Optional[str] = None
|
|
|
|
|
|
# Standardised Asset List -- the cleaned output counterpart to AddressList.
|
|
SAL = NewType("SAL", list[StandardisedAddress])
|