mypy: use different variable for different type
Instead of reassigning the same one, changing its type
This commit is contained in:
parent
b8152e2d23
commit
22aef831ff
@ -22,7 +22,7 @@
|
|||||||
import csv
|
import csv
|
||||||
from itertools import chain, repeat
|
from itertools import chain, repeat
|
||||||
from collections import deque
|
from collections import deque
|
||||||
from typing import List, Union
|
from typing import List, Union, Set
|
||||||
|
|
||||||
from relational.rtypes import *
|
from relational.rtypes import *
|
||||||
|
|
||||||
@ -436,11 +436,11 @@ class Relation (object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for i in set(affected.content):
|
for i in set(affected.content):
|
||||||
i = list(i)
|
li = list(i)
|
||||||
|
|
||||||
for column, value in new_values:
|
for column, value in new_values:
|
||||||
i[column] = value
|
li[column] = value
|
||||||
not_affected.insert(i)
|
not_affected.insert(li)
|
||||||
|
|
||||||
self.content = not_affected.content
|
self.content = not_affected.content
|
||||||
return len(affected)
|
return len(affected)
|
||||||
|
Loading…
Reference in New Issue
Block a user