Skip to content

Commit

Permalink
πŸ› using backwards compatible types.Optional
Browse files Browse the repository at this point in the history
- instead more modern `| None`
  • Loading branch information
vokimon committed Sep 11, 2023
1 parent de65838 commit 3ab8d55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tomato_cooker/models/cost_based/cost_based.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dataclasses
from typing import ClassVar
from typing import ClassVar, Optional
from pathlib import Path
from ..base import GridProblem

Expand All @@ -14,9 +14,9 @@ class TimetableScenario(GridProblem):
days: list[str] = dataclasses.field(default_factory=lambda: [dl, dm, dx, dj, dv])
nHours: int = 4
nLines: int = 6
forced: list[list[set[str]]] | None = None
busy: list[list[set[str]]] | None = None
undesired: list[list[set[str]]] | None = None
forced: Optional[list[list[set[str]]]] = None
busy: Optional[list[list[set[str]]]] = None
undesired: Optional[list[list[set[str]]]] = None

# TODO: Set those parameters with existing or new config.yaml params.
# Those parameters are set in the model, for isolated testing.
Expand Down

0 comments on commit 3ab8d55

Please sign in to comment.