Skip to content

Commit

Permalink
Use Optional instead of Union[*, None]
Browse files Browse the repository at this point in the history
Co-authored-by: Gen <[email protected]>
  • Loading branch information
Alnusjaponica and gen740 authored Sep 28, 2023
1 parent 1b89d98 commit ee42e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optuna/integration/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
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]
IndexableType = Optional[Iterable]

_logger = logging.get_logger(__name__)

Expand Down

0 comments on commit ee42e7e

Please sign in to comment.