Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmorris12 committed Sep 23, 2022
1 parent e06f237 commit fea5cb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion textattack/shared/attacked_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def __eq__(self, other):
return False
else:
if isinstance(self.attack_attrs[key], AttackedText):
if not self.attack_attrs[key]._text_input == other.attack_attrs[key]._text_input:
if (
not self.attack_attrs[key]._text_input
== other.attack_attrs[key]._text_input
):
return False
return True

Expand Down

0 comments on commit fea5cb2

Please sign in to comment.