Skip to content

Commit 2e14a74

Browse files
fix: expose base types consistently (#332)
chore: updated the __init__ Signed-off-by: Peter Staar <[email protected]>
1 parent 574779f commit 2e14a74

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

docling_core/types/doc/__init__.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,78 @@
77

88
from .base import BoundingBox, CoordOrigin, ImageRefMode, Size
99
from .document import (
10+
BaseAnnotation,
11+
ChartBar,
12+
ChartLine,
13+
ChartPoint,
14+
ChartSlice,
15+
ChartStackedBar,
1016
CodeItem,
17+
ContentLayer,
18+
DescriptionAnnotation,
1119
DocItem,
1220
DoclingDocument,
21+
DocTagsDocument,
22+
DocTagsPage,
1323
DocumentOrigin,
1424
FloatingItem,
25+
Formatting,
26+
FormItem,
27+
FormulaItem,
28+
GraphCell,
29+
GraphData,
30+
GraphLink,
1531
GroupItem,
1632
ImageRef,
33+
InlineGroup,
1734
KeyValueItem,
35+
ListItem,
36+
MiscAnnotation,
1837
NodeItem,
38+
OrderedList,
1939
PageItem,
40+
PictureBarChartData,
41+
PictureChartData,
2042
PictureClassificationClass,
2143
PictureClassificationData,
2244
PictureDataType,
2345
PictureItem,
46+
PictureLineChartData,
47+
PictureMoleculeData,
48+
PicturePieChartData,
49+
PictureScatterChartData,
50+
PictureStackedBarChartData,
51+
PictureTabularChartData,
2452
ProvenanceItem,
2553
RefItem,
54+
Script,
2655
SectionHeaderItem,
2756
TableCell,
2857
TableData,
2958
TableItem,
3059
TextItem,
60+
TitleItem,
61+
UnorderedList,
3162
)
32-
from .labels import DocItemLabel, GroupLabel, TableCellLabel
63+
from .labels import (
64+
CodeLanguageLabel,
65+
DocItemLabel,
66+
GraphCellLabel,
67+
GraphLinkLabel,
68+
GroupLabel,
69+
PictureClassificationLabel,
70+
TableCellLabel,
71+
)
72+
from .page import (
73+
BoundingRectangle,
74+
ColorMixin,
75+
ColorRGBA,
76+
Coord2D,
77+
OrderedElement,
78+
PdfCellRenderingMode,
79+
PdfPageBoundaryType,
80+
TextCell,
81+
TextCellUnit,
82+
TextDirection,
83+
)
84+
from .tokens import DocumentToken, TableToken

0 commit comments

Comments
 (0)