Fix for 'Type not subscriptable' issue

pull/1618/head
bart1e 2 years ago
parent a1f85c33d8
commit bb556ba4da
  1. 2
      slither/detectors/functions/cyclomatic_complexity.py

@ -23,7 +23,7 @@ class CyclomaticComplexity(AbstractDetector):
) )
@staticmethod @staticmethod
def _check_for_high_cc(high_cc_functions: list[(Function, int)], f: Function): def _check_for_high_cc(high_cc_functions: list, f: Function):
cc = compute_cyclomatic_complexity(f) cc = compute_cyclomatic_complexity(f)
if cc > 11: if cc > 11:
high_cc_functions.append((f, cc)) high_cc_functions.append((f, cc))

Loading…
Cancel
Save