mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-08-03 06:19:13 +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.
14 lines
325 B
Python
14 lines
325 B
Python
from docx.oxml.text.run import CT_R
|
|
from docx.text.paragraph import Paragraph
|
|
|
|
class Run:
|
|
_element: CT_R
|
|
_r: CT_R
|
|
def __init__(self, r: CT_R, parent: Paragraph) -> None: ...
|
|
@property
|
|
def bold(self) -> bool: ...
|
|
@property
|
|
def italic(self) -> bool: ...
|
|
@property
|
|
def text(self) -> str: ...
|