Skip to content

Commit

Permalink
Correct f-strings in parallel and non-parallel metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lockwoodar authored Jan 3, 2025
1 parent 27e4c81 commit 7538ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions art/attacks/evasion/auto_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def __repr__(self) -> str:
)
auto_attack_meta = (
f"AutoAttack(targeted={self.targeted}, parallel_pool_size={self.parallel_pool_size}, "
+ "num_attacks={len(self.args)})"
+ f"num_attacks={len(self.args)})"
)
return f"{auto_attack_meta}\nBestAttacks:\n{best_attack_meta}"

Expand All @@ -342,7 +342,7 @@ def __repr__(self) -> str:
)
auto_attack_meta = (
f"AutoAttack(targeted={self.targeted}, parallel_pool_size={self.parallel_pool_size}, "
+ "num_attacks={len(self.attacks)})"
+ f"num_attacks={len(self.attacks)})"
)
return f"{auto_attack_meta}\nBestAttacks:\n{best_attack_meta}"

Expand Down

0 comments on commit 7538ce6

Please sign in to comment.