Skip to content

Commit 8e7421b

Browse files
Fix the new import statement
Signed-off-by: Nicholas Audric Adriel <[email protected]>
1 parent c381971 commit 8e7421b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

art/attacks/poisoning/one_pixel_shortcut_attack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"""
2121

2222

23-
import numpy as np
24-
2523
from __future__ import annotations
2624

25+
import numpy as np
26+
2727
from art.attacks.attack import PoisoningAttackBlackBox
2828

2929

tests/attacks/poison/test_one_pixel_shortcut_attack.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
# TORT OR OTHERWISE, ARISING from, out of or in connection with the software or the use or other dealings in the
1717
# Software.
1818

19+
from __future__ import annotations
1920
import logging
20-
2121
import numpy as np
2222
import pytest
2323
from unittest.mock import patch
24-
from __future__ import annotations
2524
from art.attacks.poisoning.one_pixel_shortcut_attack import OnePixelShortcutAttack
2625
from tests.utils import ARTTestException
2726

0 commit comments

Comments
 (0)