Skip to content

Commit b44ac93

Browse files
committed
Coverage
1 parent 39981f1 commit b44ac93

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

plugboard/tune/tune.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,15 @@ def _build_algo_kwargs(self, algorithm: OptunaSpec) -> dict[str, _t.Any]:
135135

136136
def _resolve_space_fn(self, space: str) -> _t.Callable:
137137
space_fn = locate(space)
138-
if not space_fn or not isfunction(space_fn):
138+
if not space_fn or not isfunction(space_fn): # pragma: no cover
139139
raise ValueError(f"Could not locate search space function {space}")
140140
return space_fn
141141

142142
def _get_algo_class(self, type_path: str) -> _t.Type[ray.tune.search.searcher.Searcher]:
143143
algo_cls: _t.Optional[_t.Any] = locate(type_path)
144-
if not algo_cls or not issubclass(algo_cls, ray.tune.search.searcher.Searcher):
144+
if not algo_cls or not issubclass(
145+
algo_cls, ray.tune.search.searcher.Searcher
146+
): # pragma: no cover
145147
raise ValueError(f"Could not locate `Searcher` class {type_path}")
146148
return algo_cls
147149

0 commit comments

Comments
 (0)