depcheck.py: avoid variable type change
authorHelmut Grohne <helmut@subdivi.de>
Sat, 17 Oct 2020 05:22:14 +0000 (07:22 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Sat, 17 Oct 2020 05:22:14 +0000 (07:22 +0200)
mypy trips over bits changing the type from str to int.

depcheck.py

index 7d2a8dc..4d6bcd0 100755 (executable)
@@ -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("-")