Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docling/backend/json/docling_json_backend.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cesar Berrospi Ramis <[email protected]>
Signed-off-by: Panos Vagenas <[email protected]>
vagenas and ceberam authored Jan 24, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9cdb176 commit 00b8e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docling/backend/json/docling_json_backend.py
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ def _get_doc_or_err(self) -> Union[DoclingDocument, Exception]:
return e

@override
def convert(self):
def convert(self) -> DoclingDocument:
if isinstance(self._doc_or_err, DoclingDocument):
return self._doc_or_err
else:

0 comments on commit 00b8e1f

Please sign in to comment.