Skip to content

Commit

Permalink
fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuMoreau0 committed Jul 10, 2024
1 parent ff60bd0 commit 8df62b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def __init__(self):
def submit(self, sequence, wait: bool = False, **kwargs) -> RemoteResults:
return RemoteResults("abcd", self)

def _fetch_result(self, submission_id: str) -> typing.Sequence[Result]:
def _fetch_result(
self, submission_id: str
) -> typing.Sequence[Result | None]:
# First job has results,
# Second one has no results (e.g. in case of error)
return (
Expand Down

0 comments on commit 8df62b1

Please sign in to comment.