From 84e85c7edf17cd7a08932f0862e6b8eca6a18d3e Mon Sep 17 00:00:00 2001 From: mjalalzai <33738574+MForensic@users.noreply.github.com> Date: Sun, 17 Sep 2023 11:22:10 -0700 Subject: [PATCH] Data classes --- carnot/carnot-vote-aggregation.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/carnot/carnot-vote-aggregation.py b/carnot/carnot-vote-aggregation.py index 8b7cad2..cd12f1e 100644 --- a/carnot/carnot-vote-aggregation.py +++ b/carnot/carnot-vote-aggregation.py @@ -1,5 +1,5 @@ from dataclasses import dataclass -from typing import Union, List, Set, Optional +from typing import Union, List, Set, Optional, Type from abc import ABC, abstractmethod Id = bytes @@ -82,4 +82,10 @@ class TimeoutQc: high_qc: Qc qc_views: List[View] sender_ids: Set[Id] - sender: Id \ No newline at end of file + sender: Id + +class Timeout: + view: View + high_qc: Qc + sender: Id + timeout_qc: Type[TimeoutQc] \ No newline at end of file