2023-09-19 15:32:46 -07:00
|
|
|
from typing import Sequence
|
|
|
|
|
|
|
|
from docx.blkcntnr import BlockItemContainer
|
2023-10-12 23:26:14 -07:00
|
|
|
from docx.oxml.table import CT_Tbl, CT_Tc
|
2023-09-19 15:32:46 -07:00
|
|
|
from docx.shared import Parented
|
|
|
|
from docx.text.paragraph import Paragraph
|
|
|
|
|
2023-10-12 23:26:14 -07:00
|
|
|
class _Cell(BlockItemContainer):
|
|
|
|
_tc: CT_Tc
|
2023-09-19 15:32:46 -07:00
|
|
|
@property
|
|
|
|
def paragraphs(self) -> Sequence[Paragraph]: ...
|
|
|
|
|
|
|
|
class _Row:
|
|
|
|
@property
|
|
|
|
def cells(self) -> Sequence[_Cell]: ...
|
|
|
|
|
|
|
|
class _Rows(Sequence[_Row]): ...
|
|
|
|
|
|
|
|
class Table(Parented):
|
|
|
|
def __init__(self, tbl: CT_Tbl, parent: BlockItemContainer) -> None: ...
|
|
|
|
@property
|
|
|
|
def rows(self) -> _Rows: ...
|