Skip to content

Commit

Permalink
More flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Nov 8, 2022
1 parent bfa6ba3 commit b8e9416
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emmet-builders/emmet/builders/materials/electrodes.py
Expand Up @@ -63,7 +63,7 @@ def generic_groupby(list_in, comp=operator.eq):
if ls1 is not None:
continue
list_out[i1] = label_num
for i2, ls2 in list(enumerate(list_out))[i1 + 1 :]:
for i2, ls2 in list(enumerate(list_out))[(i1 + 1):]:
if comp(list_in[i1], list_in[i2]):
if list_out[i2] is None:
list_out[i2] = list_out[i1]
Expand Down
2 changes: 1 addition & 1 deletion emmet-core/emmet/core/structure_group.py
Expand Up @@ -29,7 +29,7 @@ def generic_groupby(list_in, comp=operator.eq) -> List[int]:
if ls1 is not None:
continue
list_out[i1] = label_num
for i2, ls2 in list(enumerate(list_out))[i1 + 1 :]:
for i2, ls2 in list(enumerate(list_out))[(i1 + 1):]:
if comp(list_in[i1], list_in[i2]):
if list_out[i2] is None:
list_out[i2] = list_out[i1]
Expand Down

0 comments on commit b8e9416

Please sign in to comment.