Skip to content

Commit 77822b6

Browse files
authored
Merge pull request #2550 from lockwoodar/issue_2548
correct f-strings in parallel/non-parallel AutoAttack metadata
2 parents 27e4c81 + c3eb480 commit 77822b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

art/attacks/evasion/auto_attack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def __repr__(self) -> str:
330330
)
331331
auto_attack_meta = (
332332
f"AutoAttack(targeted={self.targeted}, parallel_pool_size={self.parallel_pool_size}, "
333-
+ "num_attacks={len(self.args)})"
333+
+ f"num_attacks={len(self.args)})"
334334
)
335335
return f"{auto_attack_meta}\nBestAttacks:\n{best_attack_meta}"
336336

@@ -342,7 +342,7 @@ def __repr__(self) -> str:
342342
)
343343
auto_attack_meta = (
344344
f"AutoAttack(targeted={self.targeted}, parallel_pool_size={self.parallel_pool_size}, "
345-
+ "num_attacks={len(self.attacks)})"
345+
+ f"num_attacks={len(self.attacks)})"
346346
)
347347
return f"{auto_attack_meta}\nBestAttacks:\n{best_attack_meta}"
348348

0 commit comments

Comments
 (0)