From b0231f1c75de1a0f3ff9fef02ad8b9913123bef9 Mon Sep 17 00:00:00 2001 From: Peter Bygrave Date: Tue, 23 Jul 2024 18:33:39 +0100 Subject: [PATCH] Fix typing of schedules argument in Flow.to_deployment (#14711) --- src/prefect/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prefect/flows.py b/src/prefect/flows.py index 4d76f3584885..042378df0a71 100644 --- a/src/prefect/flows.py +++ b/src/prefect/flows.py @@ -798,7 +798,7 @@ def serve( cron: Optional[Union[Iterable[str], str]] = None, rrule: Optional[Union[Iterable[str], str]] = None, paused: Optional[bool] = None, - schedules: Optional[List["FlexibleScheduleList"]] = None, + schedules: Optional["FlexibleScheduleList"] = None, schedule: Optional[SCHEDULE_TYPES] = None, is_schedule_active: Optional[bool] = None, triggers: Optional[List[Union[DeploymentTriggerTypes, TriggerTypes]]] = None,