unstructured
36 строк · 1.0 Кб
1from typing import Iterator, Sequence2
3from docx.blkcntnr import BlockItemContainer4from docx.enum.section import WD_SECTION5from docx.oxml.section import CT_SectPr6from docx.table import Table7from docx.text.paragraph import Paragraph8
9class Section:10_sectPr: CT_SectPr11@property12def different_first_page_header_footer(self) -> bool: ...13@property14def even_page_footer(self) -> _Footer: ...15@property16def even_page_header(self) -> _Header: ...17@property18def first_page_footer(self) -> _Footer: ...19@property20def first_page_header(self) -> _Header: ...21@property22def footer(self) -> _Footer: ...23@property24def header(self) -> _Header: ...25def iter_inner_content(self) -> Iterator[Paragraph | Table]: ...26@property27def start_type(self) -> WD_SECTION: ...28
29class Sections(Sequence[Section]): ...30
31class _BaseHeaderFooter(BlockItemContainer):32@property33def is_linked_to_previous(self) -> bool: ...34
35class _Footer(_BaseHeaderFooter): ...36class _Header(_BaseHeaderFooter): ...37