Fix E741 flake8 warning (x14).

This commit is contained in:
Aymeric Augustin
2019-12-21 18:25:59 +01:00
parent ea89bec185
commit b0f7db73cd
8 changed files with 60 additions and 60 deletions

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):