fix flake8 errors

This commit is contained in:
fernandocrz 2023-11-06 12:27:22 -03:00
parent bbb7d96765
commit 0657a6df16

View File

@ -317,7 +317,7 @@ def get_import_local(imports, encoding="utf-8"):
# had to use second method instead of the previous one, # had to use second method instead of the previous one,
# because we have a list in the 'exports' field # because we have a list in the 'exports' field
# https://stackoverflow.com/questions/9427163/remove-duplicate-dict-in-list-in-python # https://stackoverflow.com/questions/9427163/remove-duplicate-dict-in-list-in-python
result_unique = [i for n, i in enumerate(result) if i not in result[n + 1 :]] result_unique = [i for n, i in enumerate(result) if i not in result[n + 1:]]
return result_unique return result_unique