Skip to content

Commit e65abad

Browse files
Revert "fix: typehint of load_one_doc"
This reverts commit f0037b54ac5ce317442e672f12e1da266b58c5c1.
1 parent b624373 commit e65abad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

wdoc/utils/loaders.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,7 @@ def load_one_doc(
434434
recur_parent_id: str = None, # just used to keep track of which document comes from which recursive filetype
435435
subitem_link: str = None,
436436
**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
437+
) -> List[Document]:
441438
"""choose the appropriate loader for a file, then load it,
442439
split into documents, add some metadata then return.
443440
The loader is cached"""

0 commit comments

Comments
 (0)