Skip to content

Commit

Permalink
chore(diversity): Add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaziarz committed Sep 11, 2023
1 parent da9d27c commit fa95c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntheseus/search/analysis/diversity.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _recursive_construct_packing_set(

# Base cases: simple greedy algorithm is optimal if there are no more than two routes
if idx_end - idx_start <= 2:
best_set = []
best_set: list[SynthesisGraph] = []
for idx in range(idx_start, idx_end):
if all(distance_metric(routes[idx], route) > radius for route in best_set):
best_set.append(routes[idx])
Expand Down

0 comments on commit fa95c27

Please sign in to comment.