From fa95c27e86619bf6e3c052f931ea38201bde0fea Mon Sep 17 00:00:00 2001 From: Krzysztof Maziarz Date: Mon, 11 Sep 2023 11:08:51 +0000 Subject: [PATCH] chore(diversity): Add type hint --- syntheseus/search/analysis/diversity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntheseus/search/analysis/diversity.py b/syntheseus/search/analysis/diversity.py index bf768751..5a72982e 100644 --- a/syntheseus/search/analysis/diversity.py +++ b/syntheseus/search/analysis/diversity.py @@ -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])