Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
(cherry picked from commit 100a855)
Signed-off-by: Eli Uriegas <eliuriegas@fb.com>
  • Loading branch information
seemethere authored and samestep committed Feb 18, 2021
1 parent 5cfda00 commit b48fa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/torchtext_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def make_mock_dataset(self, num_examples=30, num_labels=3):

texts = [str(i) for i in range(num_examples)]
labels = list(range(num_labels)) * num_repetitions
labels = [str(l) for l in labels[:num_examples]]
labels = [str(line) for line in labels[:num_examples]]

dict_dataset = [
{'text': t, 'label': l} for t, l in zip(texts, labels)
Expand Down

0 comments on commit b48fa1b

Please sign in to comment.