unstructured/typings/docx/document.pyi

23 lines
669 B
Python
Raw Normal View History

2023-10-12 23:26:14 -07:00
from typing import IO
from docx.blkcntnr import BlockItemContainer
from docx.oxml.document import CT_Document
from docx.section import Sections
from docx.settings import Settings
2023-10-12 23:26:14 -07:00
from docx.styles.style import ParagraphStyle
from docx.text.paragraph import Paragraph
class Document(BlockItemContainer):
def add_paragraph(
self,
text: str = "",
style: ParagraphStyle | str | None = None,
) -> Paragraph: ...
@property
def element(self) -> CT_Document: ...
2023-10-12 23:26:14 -07:00
def save(self, path_or_stream: str | IO[bytes]) -> None: ...
@property
def sections(self) -> Sections: ...
@property
def settings(self) -> Settings: ...