diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py index 8821123433c6..be1c1d2a0366 100644 --- a/python-package/xgboost/core.py +++ b/python-package/xgboost/core.py @@ -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)