Skip to content

Commit

Permalink
Merge pull request optuna#5908 from boringbyte/fix/multiple_test_files
Browse files Browse the repository at this point in the history
Simplify type annotations for multiple test files in `tests/visualization_tests/`
  • Loading branch information
nabenabe0928 authored Dec 30, 2024
2 parents 8656e73 + 3009093 commit 05b2441
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_contour.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
import math
from typing import Any
from typing import Callable

import numpy as np
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_edf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
from typing import Any
from typing import Callable

import numpy as np
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_parallel_coordinate.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
import math
from typing import Any
from typing import Callable

import numpy as np
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_param_importances.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
from typing import Any
from typing import Callable

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_rank.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
import math
from typing import Any
from typing import Callable

import numpy as np
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_slice.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
from typing import Any
from typing import Callable

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_terminator_improvement.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

from collections.abc import Callable
from io import BytesIO
from typing import Any
from typing import Callable

import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_timeline.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

from collections.abc import Callable
import datetime
from io import BytesIO
import time
from typing import Any
from typing import Callable

import _pytest.capture
import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/visualization_tests/test_visualizations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import Callable
from collections.abc import Callable

from matplotlib.axes._axes import Axes
import matplotlib.pyplot as plt
Expand Down

0 comments on commit 05b2441

Please sign in to comment.