Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
f065b436
Unverified
Commit
f065b436
authored
Apr 18, 2023
by
James Lamb
Committed by
GitHub
Apr 18, 2023
Browse files
[python-package] fix mypy error about used_indices in Dataset.subset() (#5833)
parent
5989405c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
f065b436
...
@@ -1736,7 +1736,7 @@ class Dataset:
...
@@ -1736,7 +1736,7 @@ class Dataset:
self
,
self
,
predictor
:
Optional
[
_InnerPredictor
],
predictor
:
Optional
[
_InnerPredictor
],
data
:
_LGBM_TrainDataType
,
data
:
_LGBM_TrainDataType
,
used_indices
:
Optional
[
List
[
int
]]
used_indices
:
Optional
[
Union
[
List
[
int
]
,
np
.
ndarray
]
]
)
->
"Dataset"
:
)
->
"Dataset"
:
data_has_header
=
False
data_has_header
=
False
if
isinstance
(
data
,
(
str
,
Path
))
and
self
.
params
is
not
None
:
if
isinstance
(
data
,
(
str
,
Path
))
and
self
.
params
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment