Skip to content

Commit

Permalink
ignore mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
MridulS committed Apr 19, 2024
1 parent 414e9e8 commit 775987a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sciline/task_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(
scheduler = NaiveScheduler()
elif not isinstance(scheduler, Scheduler):
msg = "Scheduler interface must be compatible with sciline.Scheduler"
raise ValueError(msg)
raise ValueError(msg) # type: ignore[unreachable]
self._scheduler = scheduler

def compute(
Expand Down
4 changes: 3 additions & 1 deletion tests/task_graph_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ def test_scheduler_not_supported() -> None:
ValueError,
match="Scheduler interface must be compatible with sciline.Scheduler",
):
TaskGraph(graph={}, targets=(), scheduler="not a scheduler")
TaskGraph(
graph={}, targets=(), scheduler="not a scheduler"
) # type: ignore[arg-type]

0 comments on commit 775987a

Please sign in to comment.