Skip to content

Commit

Permalink
fix for py3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Oct 23, 2024
1 parent 0a26fca commit a9c40b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def update_run_status(self, run_id: int, new_status: RunStatus) -> bool:
run_record.status = new_status
return True

def get_pending_run_id(self) -> int | None:
def get_pending_run_id(self) -> Optional[int]:
"""Get the `run_id` of a run with `Status.PENDING` status, if any."""
pending_run_id = None

Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/server/superlink/linkstate/sqlite_linkstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def update_run_status(self, run_id: int, new_status: RunStatus) -> bool:
self.query(query % timestamp_fld, data)
return True

def get_pending_run_id(self) -> int | None:
def get_pending_run_id(self) -> Optional[int]:
"""Get the `run_id` of a run with `Status.PENDING` status, if any."""
pending_run_id = None

Expand Down

0 comments on commit a9c40b2

Please sign in to comment.