Skip to content

Commit

Permalink
Merge pull request optuna#4941 from Alnusjaponica/fix-type-annotation
Browse files Browse the repository at this point in the history
Fix type annotation
  • Loading branch information
eukaryo authored Sep 29, 2023
2 parents 83f3cbf + ee42e7e commit d3fb04f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions optuna/integration/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
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]
IndexableType = Union[Iterable, None]
TwoDimArrayLikeType = Union[List[List[float]], np.ndarray, "pd.DataFrame", "spmatrix"]
IterableType = Union[List, "pd.DataFrame", np.ndarray, "pd.Series", "spmatrix", None]
IndexableType = Optional[Iterable]

_logger = logging.get_logger(__name__)

Expand Down

0 comments on commit d3fb04f

Please sign in to comment.