From 18a45ff87e4694216c1df16a2314a328854ca792 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 12 Dec 2025 22:35:06 +0000 Subject: [PATCH] refactor: change days type to Optional[int] in PreShiftConstraint and PostShiftConstraint --- rota_generator/shifts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rota_generator/shifts.py b/rota_generator/shifts.py index a8c34d4..1633576 100644 --- a/rota_generator/shifts.py +++ b/rota_generator/shifts.py @@ -90,13 +90,13 @@ class NightConstraint(BaseShiftConstraint): options: Any = None class PreShiftConstraint(BaseShiftConstraint): - days: Any = None + days: Optional[int] = None ignore_shifts: List[str] = [] exclude_days: List[str] = [] allow_self: bool = True class PostShiftConstraint(BaseShiftConstraint): - days: Any = None + days: Optional[int] = None ignore_shifts: List[str] = [] exclude_days: List[str] = [] allow_self: bool = True