From ef9aef6e8f6716fc4844aef3246c934b8207460d Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Wed, 27 Sep 2023 17:29:15 +0100 Subject: [PATCH] lint --- src/pydantic_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)