Skip to content

Commit

Permalink
🚨(prefect) fix models formatting
Browse files Browse the repository at this point in the history
Oopsie.
  • Loading branch information
jmaupetit committed Oct 31, 2024
1 parent ed0d182 commit 9633ecf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prefect/indicators/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Level(IntEnum):
EPCI = 3
CITY = 4


class IndicatorPeriod(Enum):
"""Time-based indicator periods."""

Expand All @@ -40,12 +41,14 @@ class Indicator(BaseModel):
extras: Optional[dict] = None
timestamp: datetime


class IndicatorTimeSpan(BaseModel):
"""Time span of a period for an indicator."""

period: IndicatorPeriod
start: datetime


class PeriodDuration(Enum):
"""Represents the time delta of an IndicatorPeriod."""

Expand Down

0 comments on commit 9633ecf

Please sign in to comment.