Skip to content

Commit 48edf46

Browse files
Add type annotation for run_ga
1 parent f65305a commit 48edf46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genetic_algorithm/knapsack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def run_ga(
233233
p_mutation: float = MUTATION_PROBABILITY,
234234
tournament_k: int = TOURNAMENT_K,
235235
elitism: int = ELITISM,
236-
):
236+
) -> dict:
237237
"""
238238
Runs the genetic algorithm to (approximately) solve the knapsack problem.
239239

0 commit comments

Comments
 (0)