Skip to content

Commit 5d8edae

Browse files
Update type hint for objective function to allow float return values
1 parent 3b17991 commit 5d8edae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searches/hill_climbing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
x: int,
1515
y: int,
1616
step_size: int,
17-
function_to_optimize: Callable[[int, int], int],
17+
function_to_optimize: Callable[[int, int], int | float],
1818
) -> None:
1919
"""
2020
The constructor of the search problem.

0 commit comments

Comments
 (0)