We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7ddde1 commit d838db8Copy full SHA for d838db8
pathfinding/finder/finder.py
@@ -31,11 +31,11 @@ def __init__(self, message):
31
32
33
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):
+ def __init__(self, heuristic=None, weight: int = 1,
+ diagonal_movement: int = DiagonalMovement.never,
+ weighted: bool = True,
+ time_limit: float = TIME_LIMIT,
+ max_runs: int = MAX_RUNS):
39
"""
40
Find shortest path
41
:param heuristic: heuristic used to calculate distance of 2 points
0 commit comments