add fallback model
This commit is contained in:
parent
a4468a42da
commit
138afb68a7
3 changed files with 38 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
from datetime import date, datetime
|
||||
from typing import Union, Tuple, NamedTuple, Optional
|
||||
from typing import Union, Tuple, Optional
|
||||
from dataclasses import dataclass
|
||||
|
||||
from my.core import __NOT_HPI_MODULE__
|
||||
|
@ -11,8 +11,10 @@ LatLon = Tuple[float, float]
|
|||
|
||||
# TODO: add timezone to this? can use timezonefinder in tz provider instead though
|
||||
|
||||
# converted from namedtuple to a dataclass so datasource field can be added optionally
|
||||
# if we want, can eventually be converted back to a namedtuple when all datasources are compliant
|
||||
@dataclass
|
||||
class Location(NamedTuple):
|
||||
class Location:
|
||||
lat: float
|
||||
lon: float
|
||||
dt: datetime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue