mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-25 18:05:19 +00:00
23 lines
728 B
Python
23 lines
728 B
Python
![]() |
# pyright: reportPrivateUsage=false
|
||
|
|
||
|
from typing import BinaryIO, Optional, Union
|
||
|
|
||
|
from docx.blkcntnr import BlockItemContainer
|
||
|
from docx.oxml.document import CT_Document
|
||
|
from docx.section import Sections
|
||
|
from docx.settings import Settings
|
||
|
from docx.styles.style import _ParagraphStyle
|
||
|
from docx.text.paragraph import Paragraph
|
||
|
|
||
|
class Document(BlockItemContainer):
|
||
|
def add_paragraph(
|
||
|
self, text: str = "", style: Optional[Union[_ParagraphStyle, str]] = None
|
||
|
) -> Paragraph: ...
|
||
|
@property
|
||
|
def element(self) -> CT_Document: ...
|
||
|
def save(self, path_or_stream: Union[str, BinaryIO]) -> None: ...
|
||
|
@property
|
||
|
def sections(self) -> Sections: ...
|
||
|
@property
|
||
|
def settings(self) -> Settings: ...
|