Skip to content

Commit

Permalink
Add defaults for optional configuration properties (changed default b…
Browse files Browse the repository at this point in the history
…ehavior of Pydantic 2)
  • Loading branch information
nnansters committed Jul 9, 2024
1 parent d13416e commit c87abfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nannyml/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c87abfe

Please sign in to comment.