diff --git a/optuna/study/study.py b/optuna/study/study.py index eae8fd0993..bee0ec44d8 100644 --- a/optuna/study/study.py +++ b/optuna/study/study.py @@ -334,7 +334,6 @@ def system_attrs(self) -> dict[str, Any]: return copy.deepcopy(self._storage.get_study_system_attrs(self._study_id)) @property - @experimental_func("3.4.0") def metric_names(self) -> list[str] | None: """Return metric names. diff --git a/tests/study_tests/test_study.py b/tests/study_tests/test_study.py index 51411e54d8..6477073e4b 100644 --- a/tests/study_tests/test_study.py +++ b/tests/study_tests/test_study.py @@ -1610,9 +1610,3 @@ def test_get_metric_names() -> None: assert study.metric_names == ["v0"] study.set_metric_names(["v1"]) assert study.metric_names == ["v1"] - - -def test_get_metric_names_experimental_warning() -> None: - study = create_study() - with pytest.warns(ExperimentalWarning): - study.metric_names