Skip to content

Commit b49df92

Browse files
committed
style(docx): add return type annotation to _get_level_element
Signed-off-by: Emre Çalışır <emrecalisir95@gmail.com>
1 parent 7869275 commit b49df92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docling/backend/msword_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _get_numId_and_ilvl(
404404

405405
return None, None # If the paragraph is not part of a list
406406

407-
def _get_level_element(self, numid: int, ilvl: int):
407+
def _get_level_element(self, numid: int, ilvl: int) -> Optional[BaseOxmlElement]:
408408
"""Find the level element from the numbering XML for a given numId and ilvl."""
409409
try:
410410
if not hasattr(self.docx_obj, "part") or not hasattr(

0 commit comments

Comments
 (0)