Skip to content

Commit

Permalink
Fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alnusjaponica committed Sep 24, 2023
1 parent 0ff4164 commit 1b89d98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optuna/integration/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
if not _imports.is_successful():
BaseEstimator = object # NOQA

ArrayLikeType = Union[List, np.ndarray, "pd.Series", spmatrix]
ArrayLikeType = Union[List, np.ndarray, "pd.Series", "spmatrix"]
OneDimArrayLikeType = Union[List[float], np.ndarray, "pd.Series"]
TwoDimArrayLikeType = Union[List[List[float]], np.ndarray, "pd.DataFrame", spmatrix]
IterableType = Union[List, "pd.DataFrame", np.ndarray, "pd.Series", spmatrix, None]
TwoDimArrayLikeType = Union[List[List[float]], np.ndarray, "pd.DataFrame", "spmatrix"]
IterableType = Union[List, "pd.DataFrame", np.ndarray, "pd.Series", "spmatrix", None]
IndexableType = Union[Iterable, None]

_logger = logging.get_logger(__name__)
Expand Down

0 comments on commit 1b89d98

Please sign in to comment.