Skip to content

Commit b8330d0

Browse files
authored
Update _search.py
1 parent c21c5e3 commit b8330d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sklearn/model_selection/_search.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ def __init__(self, param_grid):
106106
# check if all entries are dictionaries of lists
107107
for grid in param_grid:
108108
if not isinstance(grid, dict):
109-
raise TypeError(
110-
f"Parameter grid is not a dict ({grid!r})"
111-
)
109+
raise TypeError(f"Parameter grid is not a dict ({grid!r})")
112110
for key, value in grid.items():
113111
if isinstance(value, np.ndarray) and value.ndim > 1:
114112
raise ValueError(

0 commit comments

Comments
 (0)