From 15026ddb0d4c8e9e4a6f9012b82ae19614471f3e Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Mon, 24 Aug 2020 19:41:38 +0200 Subject: [PATCH] Make mypy happy --- relational/relation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/relational/relation.py b/relational/relation.py index 27f4690..4524834 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -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"