Skip to content

Commit 9e26fb6

Browse files
authored
Update basic_number.py
1 parent 784a279 commit 9e26fb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

genetic_algorithm/basic_number.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import doctest
22
import random
3+
from typing import Tuple
34

45

56
def fitness_function(input_value: float) -> float:
@@ -28,7 +29,7 @@ def fitness_function(input_value: float) -> float:
2829
return input_value**2 - 3 * input_value + 2
2930

3031

31-
def genetic_algorithm():
32+
def genetic_algorithm() -> Tuple[float, float]:
3233
"""
3334
A simplified genetic algorithm example.
3435

0 commit comments

Comments
 (0)