Skip to content

Commit

Permalink
[python-package] use _DatasetHandle type hint (#5740)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Feb 26, 2023
1 parent fe15761 commit 6f459ce
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 @@ -1364,7 +1364,7 @@ def __init__(
free_raw_data : bool, optional (default=True)
If True, raw data is freed after constructing inner Dataset.
"""
self.handle: Optional[ctypes.c_void_p] = None
self.handle: Optional[_DatasetHandle] = None
self.data = data
self.label = label
self.reference = reference
Expand Down

0 comments on commit 6f459ce

Please sign in to comment.