diff --git a/src/pydantic_models.py b/src/pydantic_models.py index ae0dae8..5a09460 100644 --- a/src/pydantic_models.py +++ b/src/pydantic_models.py @@ -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) @@ -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)