Skip to content

Commit

Permalink
typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 17, 2024
1 parent 5dbf418 commit 4145a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/guide-python/external_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def make_batches(
class Iterator(xgboost.DataIter):
"""A custom iterator for loading files in batches."""

def __init__(self, file_paths: List[Tuple[str, str]]):
def __init__(self, file_paths: List[Tuple[str, str]]) -> None:
self._file_paths = file_paths
self._it = 0
# XGBoost will generate some cache files under current directory with the prefix
Expand Down

0 comments on commit 4145a49

Please sign in to comment.