Fix E741 flake8 warning (x14).

This commit is contained in:
Aymeric Augustin committed 2019-12-22 10:59:07 +01:00
1 parent ea89bec185
commit b0f7db73cd
8 files changed
+60 -60

No files matched your search

+3 -3
View File
@@ -76,7 +76,7 @@ class SwagExample(object):
return self.__repr__()
def __repr__(self):
l = [
attributes = [
"swag_id: {}".format(self.swag_id),
"context_sentence: {}".format(self.context_sentence),
"start_ending: {}".format(self.start_ending),
@@ -87,9 +87,9 @@ class SwagExample(object):
]
if self.label is not None:
l.append("label: {}".format(self.label))
attributes.append("label: {}".format(self.label))
return ", ".join(l)
return ", ".join(attributes)
class InputFeatures(object):