making return type optional

This commit is contained in:
mjalalzai 2023-10-30 21:44:03 -07:00
parent 1ce055a276
commit 61b92a5067

View File

@ -321,7 +321,7 @@ class Carnot2(Carnot):
# Define your types here (Id, View, StandardQc, AggregateQc, etc.)
def concatenate_aggregate_qcs(qc_set: Set[Union[StandardQc, AggregateQc]]) -> AggregateQc:
def concatenate_aggregate_qcs(qc_set: Set[Union[StandardQc, AggregateQc]]) -> Optional[AggregateQc]:
if qc_set is None:
return None