Make mypy happy

master
Salvo 'LtWorf' Tomaselli 2020-08-24 19:41:38 +07:00
parent 925c238f02
commit 15026ddb0d
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 5 additions and 5 deletions

@ -436,13 +436,13 @@ class Relation:
m_len = [len(i) + 2 for i in self.header] # Maximum lenght string
for f in self.content:
for col, i in enumerate(str(val) for val in f):
if len(i) + 2 > m_len[col]:
m_len[col] = len(i) + 2
for col, k in enumerate(str(val) for val in f):
if len(k) + 2 > m_len[col]:
m_len[col] = len(k) + 2
res = ""
for f, attr in enumerate(self.header):
res += colorize(attr.ljust(m_len[f]), ansi=3)
for j, attr in enumerate(self.header):
res += colorize(attr.ljust(m_len[j]), ansi=3)
for r in self.content:
res += "\n"