Skip to content

Commit

Permalink
Corrected types.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Nov 4, 2024
1 parent 0c71622 commit 024e8ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scalene/scalene_leak_analysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, List, OrderedDict
from typing import Any, List, OrderedDict, Tuple

from scalene.scalene_statistics import Filename, LineNumber, ScaleneStatistics

Expand All @@ -17,10 +17,10 @@ def compute_leaks(
stats: ScaleneStatistics,
avg_mallocs: OrderedDict[LineNumber, float],
fname: Filename,
) -> List[Any]:
) -> List[Tuple[LineNumber, float, float]]:
if growth_rate / 100 < ScaleneLeakAnalysis.growth_rate_threshold:
return []
leaks = []
leaks : List[Tuple[LineNumber, float, float]] = []
keys = list(stats.leak_score[fname].keys())
for index, item in enumerate(stats.leak_score[fname].values()):
# See https://en.wikipedia.org/wiki/Rule_of_succession
Expand Down

0 comments on commit 024e8ff

Please sign in to comment.