Skip to content

Commit

Permalink
comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 17, 2024
1 parent 55c4f1b commit 9fe04d9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion python-package/xgboost/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,6 @@ def __getitem__(self, val: Union[Integer, tuple, slice, EllipsisType]) -> "Boost
if isinstance(val, tuple):
raise ValueError("Only supports slicing through 1 dimension.")
# All supported types are now slice
# FIXME(jiamingy): Use `types.EllipsisType` once Python 3.10 is used.
if not isinstance(val, slice):
msg = _expect((int, slice, np.integer, EllipsisType), type(val))
raise TypeError(msg)
Expand Down

0 comments on commit 9fe04d9

Please sign in to comment.