2023-09-19 15:32:46 -07:00
|
|
|
# pyright: reportPrivateUsage=false
|
|
|
|
|
2023-09-26 12:43:55 -07:00
|
|
|
from typing import IO, Union
|
2023-09-19 15:32:46 -07:00
|
|
|
|
|
|
|
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-27 11:32:46 -04:00
|
|
|
self, text: str = "", style: Union[_ParagraphStyle, str, None] = None,
|
2023-09-19 15:32:46 -07:00
|
|
|
) -> Paragraph: ...
|
|
|
|
@property
|
|
|
|
def element(self) -> CT_Document: ...
|
2023-09-26 12:43:55 -07:00
|
|
|
def save(self, path_or_stream: Union[str, IO[bytes]]) -> None: ...
|
2023-09-19 15:32:46 -07:00
|
|
|
@property
|
|
|
|
def sections(self) -> Sections: ...
|
|
|
|
@property
|
|
|
|
def settings(self) -> Settings: ...
|