mypy: use different variable for different type

Instead of reassigning the same one, changing its type
master
Salvo 'LtWorf' Tomaselli 2017-08-18 08:37:34 +07:00
parent b8152e2d23
commit 22aef831ff
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 4 additions and 4 deletions

@ -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)