Skip to content

Commit 7b5557d

Browse files
committed
Update annotations and restrict plotly <6.0.0
1 parent 90c5e6e commit 7b5557d

File tree

7 files changed

+7
-9
lines changed

7 files changed

+7
-9
lines changed

.tools/envs/testenv-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
- joblib # run, tests
1919
- numpy >= 2 # run, tests
2020
- pandas # run, tests
21-
- plotly # run, tests
21+
- plotly<6.0.0 # run, tests
2222
- pybaum>=0.1.2 # run, tests
2323
- scipy>=1.2.1 # run, tests
2424
- sqlalchemy # run, tests

.tools/envs/testenv-numpy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- statsmodels # dev, tests
1717
- cloudpickle # run, tests
1818
- joblib # run, tests
19-
- plotly # run, tests
19+
- plotly<6.0.0 # run, tests
2020
- pybaum>=0.1.2 # run, tests
2121
- scipy>=1.2.1 # run, tests
2222
- sqlalchemy # run, tests

.tools/envs/testenv-others.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- joblib # run, tests
1717
- numpy >= 2 # run, tests
1818
- pandas # run, tests
19-
- plotly # run, tests
19+
- plotly<6.0.0 # run, tests
2020
- pybaum>=0.1.2 # run, tests
2121
- scipy>=1.2.1 # run, tests
2222
- sqlalchemy # run, tests

.tools/envs/testenv-pandas.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- statsmodels # dev, tests
1717
- cloudpickle # run, tests
1818
- joblib # run, tests
19-
- plotly # run, tests
19+
- plotly<6.0.0 # run, tests
2020
- pybaum>=0.1.2 # run, tests
2121
- scipy>=1.2.1 # run, tests
2222
- sqlalchemy # run, tests

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
- joblib # run, tests
2121
- numpy >= 2 # run, tests
2222
- pandas # run, tests
23-
- plotly # run, tests
23+
- plotly<6.0.0 # run, tests
2424
- pybaum>=0.1.2 # run, tests
2525
- scipy>=1.2.1 # run, tests
2626
- sqlalchemy # run, tests

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies = [
1010
"joblib",
1111
"numpy",
1212
"pandas",
13-
"plotly",
13+
"plotly<6.0.0",
1414
"pybaum>=0.1.2",
1515
"scipy>=1.2.1",
1616
"sqlalchemy>=1.3",

src/optimagic/optimization/history.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import warnings
42
from dataclasses import dataclass
53
from functools import partial
@@ -461,7 +459,7 @@ def _validate_args_are_all_none_or_lists_of_same_length(
461459
raise ValueError("All arguments must be lists of the same length or None.")
462460

463461

464-
def _task_to_categorical(task: list[EvalTask]) -> pd.Series[str]:
462+
def _task_to_categorical(task: list[EvalTask]) -> "pd.Series[str]":
465463
EvalTaskDtype = pd.CategoricalDtype(categories=[t.value for t in EvalTask])
466464
return pd.Series([t.value for t in task], dtype=EvalTaskDtype)
467465

0 commit comments

Comments
 (0)