diff --git a/slither/utils/halstead.py b/slither/utils/halstead.py index d9835b6be..d781e3c39 100644 --- a/slither/utils/halstead.py +++ b/slither/utils/halstead.py @@ -149,7 +149,7 @@ class HalsteadMetrics: """ contracts: List[Contract] = field(default_factory=list) - contract_metrics: OrderedDict[Contract, HalsteadContractMetrics] = field( + contract_metrics: OrderedDict = field( default_factory=OrderedDict ) title: str = "Halstead complexity metrics"