2023-09-19 15:32:46 -07:00
|
|
|
# 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(
|
2023-09-19 22:26:36 -06:00
|
|
|
self, text: str = "", style: Optional[Union[_ParagraphStyle, str]] = None,
|
2023-09-19 15:32:46 -07:00
|
|
|
) -> 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: ...
|