From 85b3a6ad3c31269d1e17d43cc8d7d626c38f4da1 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sat, 17 Oct 2020 07:22:14 +0200 Subject: depcheck.py: avoid variable type change mypy trips over bits changing the type from str to int. --- depcheck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/depcheck.py b/depcheck.py index 7d2a8dc..4d6bcd0 100755 --- a/depcheck.py +++ b/depcheck.py @@ -70,8 +70,7 @@ class Architectures: def read_abitable(self, abitable): self.abitable.clear() for arch, bits in self.read_table(abitable): - bits = int(bits) - self.abitable[arch] = bits + self.abitable[arch] = int(bits) def match(self, arch, pattern): parts = pattern.split("-") -- cgit v1.2.3