Skip to content

Commit

Permalink
chore: fixed mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarbMITRE committed Jan 3, 2024
1 parent 9778670 commit e30cc88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dioptra/restapi/experiment/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def get(self) -> List[Experiment]:
) # noqa: F841
log.info("Request received")

index = request.args.get("index", None, type=int)
page_length = request.args.get("page_length", None, type=int)
index = request.args.get("index", None, type=Optional[int])
page_length = request.args.get("page_length", None, type=Optional[int])
data = self._experiment_service.get_all(
index=index, page_length=page_length, log=log
)
Expand Down

0 comments on commit e30cc88

Please sign in to comment.