Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Auer <[email protected]>
  • Loading branch information
cau-git committed Feb 5, 2025
1 parent 2083941 commit 46ffd20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docling_core/types/doc/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
DocItemLabel.LIST_ITEM,
DocItemLabel.CODE,
DocItemLabel.REFERENCE,
DocItemLabel.PAGE_HEADER,
DocItemLabel.PAGE_FOOTER,
}


Expand Down Expand Up @@ -513,6 +515,9 @@ class ContentLayer(str, Enum):
FURNITURE = "furniture"


DEFAULT_CONTENT_LAYERS = {ContentLayer.BODY}


class NodeItem(BaseModel):
"""NodeItem."""

Expand Down Expand Up @@ -1851,7 +1856,7 @@ def iterate_items(
with_groups: bool = False,
traverse_pictures: bool = False,
page_no: Optional[int] = None,
included_content_layers: List[ContentLayer] = [ContentLayer.BODY],
included_content_layers: set[ContentLayer] = DEFAULT_CONTENT_LAYERS,
_level: int = 0, # fixed parameter, carries through the node nesting level
) -> typing.Iterable[Tuple[NodeItem, int]]: # tuple of node and level
"""iterate_elements.
Expand Down

0 comments on commit 46ffd20

Please sign in to comment.