Skip to content

Commit 8f9910e

Browse files
committed
chore: return type, comments
Signed-off-by: eshwarprasadS <[email protected]>
1 parent 246e71c commit 8f9910e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/instructlab/sdg/utils/taxonomy.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Standard
44
from pathlib import Path
55
from tempfile import mkdtemp
6-
from typing import Dict, List, Tuple, Union
6+
from typing import Dict, List, Union
77
import glob
88
import logging
99
import os
@@ -120,7 +120,7 @@ def _get_documents(
120120
source: Dict[str, Union[str, List[str]]],
121121
skip_checkout: bool = False,
122122
document_output_dir: Path = None,
123-
) -> Tuple[List[Path]]:
123+
) -> List[Path]:
124124
"""
125125
Retrieve the file paths of files (Markdown and PDF) from a Git repository.
126126
@@ -428,6 +428,7 @@ def leaf_node_to_samples(
428428
docling_model_path=None,
429429
):
430430
samples = []
431+
# check if the leaf node has document filepaths, if so, it's a knowledge leaf node
431432
if leaf_node and (leaf_node[0].get("filepaths")):
432433
samples = _knowledge_leaf_node_to_samples(
433434
leaf_node,

0 commit comments

Comments
 (0)