Skip to content

Commit b8e9416

Browse files
committed
More flake8
1 parent bfa6ba3 commit b8e9416

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

emmet-builders/emmet/builders/materials/electrodes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def generic_groupby(list_in, comp=operator.eq):
6363
if ls1 is not None:
6464
continue
6565
list_out[i1] = label_num
66-
for i2, ls2 in list(enumerate(list_out))[i1 + 1 :]:
66+
for i2, ls2 in list(enumerate(list_out))[(i1 + 1):]:
6767
if comp(list_in[i1], list_in[i2]):
6868
if list_out[i2] is None:
6969
list_out[i2] = list_out[i1]

emmet-core/emmet/core/structure_group.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def generic_groupby(list_in, comp=operator.eq) -> List[int]:
2929
if ls1 is not None:
3030
continue
3131
list_out[i1] = label_num
32-
for i2, ls2 in list(enumerate(list_out))[i1 + 1 :]:
32+
for i2, ls2 in list(enumerate(list_out))[(i1 + 1):]:
3333
if comp(list_in[i1], list_in[i2]):
3434
if list_out[i2] is None:
3535
list_out[i2] = list_out[i1]

0 commit comments

Comments
 (0)