We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b624373 commit e65abadCopy full SHA for e65abad
wdoc/utils/loaders.py
@@ -434,10 +434,7 @@ def load_one_doc(
434
recur_parent_id: str = None, # just used to keep track of which document comes from which recursive filetype
435
subitem_link: str = None,
436
**kwargs,
437
- # ) -> List[Document]:
438
-) -> Union[List[Document], str]:
439
- # load_one_doc returns only List[Document]
440
- # but the wrapper uses @wraps so we have to add str in case of errors
+) -> List[Document]:
441
"""choose the appropriate loader for a file, then load it,
442
split into documents, add some metadata then return.
443
The loader is cached"""
0 commit comments