From c87abfe6d701784d8fd8f24bfd929124d935680e Mon Sep 17 00:00:00 2001 From: Niels Nuyttens Date: Tue, 9 Jul 2024 21:33:34 +0200 Subject: [PATCH] Add defaults for optional configuration properties (changed default behavior of Pydantic 2) --- nannyml/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nannyml/config.py b/nannyml/config.py index 2e8e4743..170d86e8 100644 --- a/nannyml/config.py +++ b/nannyml/config.py @@ -88,11 +88,11 @@ def _parse_thresholds(cls, value: Dict[str, Any]): class Config(BaseModel): - input: Optional[InputConfig] + input: Optional[InputConfig] = None calculators: List[CalculatorConfig] - scheduling: Optional[SchedulingConfig] + scheduling: Optional[SchedulingConfig] = None - ignore_errors: Optional[bool] + ignore_errors: Optional[bool] = None @classmethod @lru_cache(maxsize=1)