unstructured/typings/docx/oxml/document.pyi
Steve Canny b54994ae95
rfctr: docx partitioning (#1422)
Reviewers: I recommend reviewing commit-by-commit or just looking at the
final version of `partition/docx.py` as View File.

This refactor solves a few problems but mostly lays the groundwork to
allow us to refine further aspects such as page-break detection,
list-item detection, and moving python-docx internals upstream to that
library so our work doesn't depend on that domain-knowledge.
2023-09-19 15:32:46 -07:00

11 lines
252 B
Python

from typing import Iterator
from docx.oxml.xmlchemy import BaseOxmlElement
class CT_Body(BaseOxmlElement):
def __iter__(self) -> Iterator[BaseOxmlElement]: ...
class CT_Document(BaseOxmlElement):
@property
def body(self) -> CT_Body: ...