From 845e23200d471e44f274940846e400d170b5ff37 Mon Sep 17 00:00:00 2001 From: Jonas Ohlsson Date: Tue, 1 Mar 2022 12:39:55 +0100 Subject: MLBEDSW-3367 Add mypy to pre-commit Add mypy to pre-commit and clean up all reported errors. Signed-off-by: Jonas Ohlsson Change-Id: If7dc869f5fecdb0e2db40f14e7d9db21aa33df71 --- ethosu/vela/tensor_allocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ethosu/vela/tensor_allocation.py') diff --git a/ethosu/vela/tensor_allocation.py b/ethosu/vela/tensor_allocation.py index c82140c5..c8b5129d 100644 --- a/ethosu/vela/tensor_allocation.py +++ b/ethosu/vela/tensor_allocation.py @@ -91,7 +91,7 @@ def verify_allocation(live_ranges: LiveRangeGraph, alignment: int): verify_alignment(live_ranges, alignment) nr_time_slots = 1 + max(lr.end_time for lr in live_ranges.lrs) # Contains active live ranges at each timestamp - lrs_at_time = [[] for i in range(nr_time_slots)] + lrs_at_time: List[List[LiveRange]] = [[] for i in range(nr_time_slots)] for lr in live_ranges.lrs: for t in range(lr.start_time, lr.end_time + 1): lrs_at_time[t].append(lr) -- cgit v1.2.1