Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Sep 27, 2023
1 parent a77a140 commit ef9aef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pydantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GSPYield(EnhancedBaseModel):

@validator("solar_generation_kw")
def result_check(cls, v):
...
""" round to 2 decimal places"""
return round(v, 2)


Expand Down Expand Up @@ -178,7 +178,7 @@ class NationalForecastValue(ForecastValue):

@validator("expected_power_generation_megawatts")
def result_check(cls, v):
...
""" round to 2 decimal places"""
return round(v, 2)


Expand Down

0 comments on commit ef9aef6

Please sign in to comment.