Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: nate nowack <thrast36@gmail.com>
  • Loading branch information
cicdw and zzstoatzz authored Jan 8, 2025
1 parent 50ae925 commit 23c4850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prefect/flow_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def load_flow_run(flow_run_id: UUID) -> FlowRun:
return flow_run


def load_flow(flow_run: FlowRun) -> Flow:
def load_flow(flow_run: FlowRun) -> Flow[..., Any]:
entrypoint = os.environ.get("PREFECT__FLOW_ENTRYPOINT")

if entrypoint:
Expand All @@ -122,7 +122,7 @@ def load_flow(flow_run: FlowRun) -> Flow:
return flow


def load_flow_and_flow_run(flow_run_id: UUID) -> Tuple[FlowRun, Flow]:
def load_flow_and_flow_run(flow_run_id: UUID) -> tuple[FlowRun, Flow[..., Any]]:
flow_run = load_flow_run(flow_run_id)
flow = load_flow(flow_run)
return flow_run, flow
Expand Down

0 comments on commit 23c4850

Please sign in to comment.