mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-10-06 22:02:16 +00:00

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.
8 lines
184 B
Python
8 lines
184 B
Python
from typing import Optional
|
|
|
|
from docx.oxml.xmlchemy import BaseOxmlElement
|
|
|
|
class CT_SectPr(BaseOxmlElement):
|
|
@property
|
|
def preceding_sectPr(self) -> Optional[CT_SectPr]: ...
|