unstructured/typings/docx/text/paragraph.pyi

27 lines
918 B
Python
Raw Normal View History

2023-10-12 23:26:14 -07:00
from typing import Iterator, List, Sequence
from docx.blkcntnr import BlockItemContainer
from docx.oxml.text.paragraph import CT_P
from docx.oxml.xmlchemy import BaseOxmlElement
2023-10-12 23:26:14 -07:00
from docx.styles.style import ParagraphStyle
from docx.text.hyperlink import Hyperlink
from docx.text.pagebreak import RenderedPageBreak
from docx.text.run import Run
class Paragraph(BlockItemContainer):
_p: CT_P
2023-10-12 23:26:14 -07:00
_parent: BlockItemContainer
text: str
def __init__(self, p: BaseOxmlElement, parent: BlockItemContainer) -> None: ...
@property
2023-10-12 23:26:14 -07:00
def contains_page_break(self) -> bool: ...
@property
def hyperlinks(self) -> List[Hyperlink]: ...
def iter_inner_content(self) -> Iterator[Run | Hyperlink]: ...
@property
2023-10-12 23:26:14 -07:00
def rendered_page_breaks(self) -> List[RenderedPageBreak]: ...
@property
def runs(self) -> Sequence[Run]: ...
@property
2023-10-12 23:26:14 -07:00
def style(self) -> ParagraphStyle | None: ...