Skip to content

Commit d838db8

Browse files
committed
add type annotations for automatic class diagram generation
1 parent f7ddde1 commit d838db8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pathfinding/finder/finder.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def __init__(self, message):
3131

3232

3333
class Finder:
34-
def __init__(self, heuristic=None, weight=1,
35-
diagonal_movement=DiagonalMovement.never,
36-
weighted=True,
37-
time_limit=TIME_LIMIT,
38-
max_runs=MAX_RUNS):
34+
def __init__(self, heuristic=None, weight: int = 1,
35+
diagonal_movement: int = DiagonalMovement.never,
36+
weighted: bool = True,
37+
time_limit: float = TIME_LIMIT,
38+
max_runs: int = MAX_RUNS):
3939
"""
4040
Find shortest path
4141
:param heuristic: heuristic used to calculate distance of 2 points

0 commit comments

Comments
 (0)