Skip to content

Commit

Permalink
[python-package] fix mypy error from Dataset.pandas_categorical (#6098)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Sep 19, 2023
1 parent 5792b5b commit 646dfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ def __init__(
self.used_indices: Optional[List[int]] = None
self._need_slice = True
self._predictor: Optional[_InnerPredictor] = None
self.pandas_categorical = None
self.pandas_categorical: Optional[List[List]] = None
self._params_back_up = None
self.version = 0
self._start_row = 0 # Used when pushing rows one by one.
Expand Down

0 comments on commit 646dfed

Please sign in to comment.