Skip to content

Commit

Permalink
fix minor format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyanjun committed Feb 20, 2022
1 parent f0f0779 commit effa8de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions textattack/shared/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ def _verify(self):
self.worklist
), "Recorded number of remaining attacks and size of worklist are different."

results_set = {result.original_text
for result in self.attack_log_manager.results}
results_set = {
result.original_text for result in self.attack_log_manager.results
}
assert (
len(results_set) == self.results_count
), "Duplicate `AttackResults` found."

0 comments on commit effa8de

Please sign in to comment.