MCPcopy Index your code
hub / github.com/python-openxml/python-docx / push

Method push

src/docx/shared.py:368–370  ·  view source on GitHub ↗

Add a text fragment to the accumulator.

(self, text: str)

Source from the content-addressed store, hash-verified

366 self._texts: List[str] = []
367
368 def push(self, text: str) -> None:
369 """Add a text fragment to the accumulator."""
370 self._texts.append(text)
371
372 def pop(self) -> Iterator[str]:
373 """Generate sero-or-one str from those accumulated.

Callers 1

iter_itemsMethod · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected