Skip to content

Commit 05b2441

Browse files
authored
Merge pull request optuna#5908 from boringbyte/fix/multiple_test_files
Simplify type annotations for multiple test files in `tests/visualization_tests/`
2 parents 8656e73 + 3009093 commit 05b2441

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

tests/visualization_tests/test_contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
import math
56
from typing import Any
6-
from typing import Callable
77

88
import numpy as np
99
import pytest

tests/visualization_tests/test_edf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
from typing import Any
5-
from typing import Callable
66

77
import numpy as np
88
import pytest

tests/visualization_tests/test_parallel_coordinate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
import math
56
from typing import Any
6-
from typing import Callable
77

88
import numpy as np
99
import pytest

tests/visualization_tests/test_param_importances.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
from typing import Any
5-
from typing import Callable
66

77
import pytest
88

tests/visualization_tests/test_rank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
import math
56
from typing import Any
6-
from typing import Callable
77

88
import numpy as np
99
import pytest

tests/visualization_tests/test_slice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
from typing import Any
5-
from typing import Callable
66

77
import pytest
88

tests/visualization_tests/test_terminator_improvement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from io import BytesIO
45
from typing import Any
5-
from typing import Callable
66

77
import pytest
88

tests/visualization_tests/test_timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
import datetime
45
from io import BytesIO
56
import time
67
from typing import Any
7-
from typing import Callable
88

99
import _pytest.capture
1010
import pytest

tests/visualization_tests/test_visualizations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import Callable
3+
from collections.abc import Callable
44

55
from matplotlib.axes._axes import Axes
66
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)