From 22aef831fff512c5c44150677ee3dbebcf9e6722 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Fri, 18 Aug 2017 08:37:34 +0200 Subject: [PATCH] mypy: use different variable for different type Instead of reassigning the same one, changing its type --- relational/relation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/relational/relation.py b/relational/relation.py index 52b3986..692c62d 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -22,7 +22,7 @@ import csv from itertools import chain, repeat from collections import deque -from typing import List, Union +from typing import List, Union, Set from relational.rtypes import * @@ -436,11 +436,11 @@ class Relation (object): ) for i in set(affected.content): - i = list(i) + li = list(i) for column, value in new_values: - i[column] = value - not_affected.insert(i) + li[column] = value + not_affected.insert(li) self.content = not_affected.content return len(affected)