From 3277aba5c6bdc25b795b54d8fa967e37295d9858 Mon Sep 17 00:00:00 2001 From: danielsanchezq Date: Fri, 30 Jun 2023 10:10:11 +0200 Subject: [PATCH] Fix type signature on building committee data --- carnot/tree_overlay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carnot/tree_overlay.py b/carnot/tree_overlay.py index 0cce271..1a049e3 100644 --- a/carnot/tree_overlay.py +++ b/carnot/tree_overlay.py @@ -31,7 +31,7 @@ class CarnotTree: def build_committee_from_nodes_with_size( nodes: List[Id], number_of_committees: int, - ) -> Tuple[List[Id], Dict[int, Committee]]: + ) -> Tuple[List[Id], Dict[Id, Committee]]: committee_size, remainder = divmod(len(nodes), number_of_committees) committees = [ set(nodes[n*committee_size:(n+1)*committee_size])